Function Reference


_GUICtrlSlider_GetLineSize

Retrieves the number of logical positions the slider moves

#include <GuiSlider.au3>
_GUICtrlSlider_GetLineSize ( $hWnd )

Parameters

$hWnd Control ID/Handle to the control

Return Value

Returns the line size for the slider.

Remarks

The default setting for the line size is 1

Related

_GUICtrlSlider_SetLineSize

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