Définit la position logique de départ d'une plage de sélection
#include <GuiSlider.au3>
_GUICtrlSlider_SetSelStart ( $hWnd, $iMinimum )
$hWnd | ID/handle du contrôle Slider |
$iMinimum | Position logique de départ pour la plage de sélection |
_GUICtrlSlider_ClearSel, _GUICtrlSlider_GetSel, _GUICtrlSlider_GetSelStart, _GUICtrlSlider_SetSel, _GUICtrlSlider_SetSelEnd
#include <GUIConstantsEx.au3> #include <GuiSlider.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $idSlider ; Crée une GUI GUICreate("Slider Set Sel Start", 400, 296) $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE)) GUISetState(@SW_SHOW) ; Définit Sel Start _GUICtrlSlider_SetSelStart($idSlider, 10) ; Obtient Sel Start MsgBox($MB_SYSTEMMODAL, "Information", "Sel Start: " & _GUICtrlSlider_GetSelStart($idSlider)) ; Boucle jusqu'à ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example