# Function Reference

# _GUICtrlSlider_SetLineSize

Sets the number of logical positions the slider moves

#include <GuiSlider.au3>
_GUICtrlSlider_SetLineSize ( $hWnd, $iLineSize )

## Parameters

$hWnd | Control ID/Handle to the control
$iLineSize | New line size

## Return Value

Returns the previous line size.

## Remarks

The default setting for the line size is 1

## Related

_GUICtrlSlider_GetLineSize

## Example

    #include <GUIConstantsEx.au3>
    #include <GuiSlider.au3>
    #include <MsgBoxConstants.au3>

    Example()

    Func Example()
        ; Create GUI
        GUICreate("Slider Get/Set Line Size (v" & @AutoItVersion & ")", 400, 296)
        Local $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE))
        GUISetState(@SW_SHOW)

        ; Get Line Size
        MsgBox($MB_SYSTEMMODAL, "Information", "Line Size: " & _GUICtrlSlider_GetLineSize($idSlider))

        ; Set Line Size
        _GUICtrlSlider_SetLineSize($idSlider, 4)

        ; Get Line Size
        MsgBox($MB_SYSTEMMODAL, "Information", "Line Size: " & _GUICtrlSlider_GetLineSize($idSlider))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
    EndFunc   ;==>Example