Function Reference


_GUICtrlSlider_SetSelStart

Sets the starting logical position of the current selection range

#include <GuiSlider.au3>
_GUICtrlSlider_SetSelStart ( $hWnd, $iMinimum )

Parameters

$hWnd Control ID/Handle to the control
$iMinimum Starting logical position for the selection range

Return Value

None.

Related

_GUICtrlSlider_ClearSel, _GUICtrlSlider_GetSel, _GUICtrlSlider_GetSelStart, _GUICtrlSlider_SetSel, _GUICtrlSlider_SetSelEnd

Example

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

Example()

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

        ; Set Sel Start
        _GUICtrlSlider_SetSelStart($idSlider, 10)

        ; Get Sel Start
        MsgBox($MB_SYSTEMMODAL, "Information", "Sel Start: " & _GUICtrlSlider_GetSelStart($idSlider))

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