UDF > GUI > GuiSlider >


_GUICtrlSlider_SetRangeMin

Définit la position logique minimale du Slider

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

Paramètres

$hWnd ID/handle du contrôle Slider
$iMinimum Position minimale du Slider

Valeur de retour

Aucune.

Remarque

Si la position du curseur actuelle est inférieure à la nouvelle position minimale, la fonction _GUICtrlSlider_SetRangeMin() définit la position du curseur à la nouvelle valeur minimale.

En relation

_GUICtrlSlider_GetRangeMin, _GUICtrlSlider_SetRange, _GUICtrlSlider_SetRangeMax

Exemple

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

Example()

Func Example()
    Local $idSlider

    ; Crée une GUI
    GUICreate("Slider Set Range Min", 400, 296)
    $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE))
    GUISetState(@SW_SHOW)

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

    ; Définit Range Min
    _GUICtrlSlider_SetRangeMin($idSlider, 20)

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

    ; Boucle jusqu'à ce que l'utilisateur quitte.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>Example