Function Reference


_GUICtrlSlider_ClearSel

Clears the current selection range

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

Parameters

$hWnd Control ID/Handle to the control

Return Value

None.

Related

_GUICtrlSlider_SetSel, _GUICtrlSlider_SetSelEnd, _GUICtrlSlider_SetSelStart

Example

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

Example()

Func Example()
        Local $idSlider

        ; Create GUI
        GUICreate("(Internal) Slider Clear Sel", 400, 296)
        $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE))
        GUISetState(@SW_SHOW)

        ; Set Sel
        _GUICtrlSlider_SetSel($idSlider, 10, 50)

        MsgBox($MB_SYSTEMMODAL, "Information", "Clear Sel")
        ; Clear Sel
        _GUICtrlSlider_ClearSel($idSlider)

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