Function Reference


_GUICtrlSlider_SetRangeMin

Sets the minimum logical position for the slider

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

Parameters

$hWnd Control ID/Handle to the control
$iMinimum Minimum position for the slider

Return Value

None.

Remarks

If the current slider position is less than the new minimum, the _GUICtrlSlider_SetRangeMin() function sets the slider position to the new minimum value.

Related

_GUICtrlSlider_GetRangeMin, _GUICtrlSlider_SetRange, _GUICtrlSlider_SetRangeMax

Example

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

Example()

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

        ; Get Range Min
        MsgBox($MB_SYSTEMMODAL, "Information", "Range Min: " & _GUICtrlSlider_GetRangeMin($idSlider))

        ; Set Range Min
        _GUICtrlSlider_SetRangeMin($idSlider, 20)

        ; Get Range Min
        MsgBox($MB_SYSTEMMODAL, "Information", "Range Min: " & _GUICtrlSlider_GetRangeMin($idSlider))

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