Setzt die minimale Höhe der Statusbar
#include <GuiStatusBar.au3>
_GUICtrlStatusBar_SetMinHeight ( $hWnd, $iMinHeight )
$hWnd | Handle des Controls |
$iMinHeight | Setzt die minimale Höhe des Fensters in Pixel |
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
Example()
Func Example()
; Erstellt eine GUI
Local $hGUI = GUICreate("StatusBar: Setzt die minimale Höhe (v" & @AutoItVersion & ")", 500, 300)
Local $hStatus = _GUICtrlStatusBar_Create($hGUI)
GUISetState(@SW_SHOW)
; Setzt die Abschnitte
Local $aParts[3] = [75, 150, -1]
_GUICtrlStatusBar_SetParts($hStatus, $aParts)
_GUICtrlStatusBar_SetText($hStatus, "Abschnitt 0")
_GUICtrlStatusBar_SetText($hStatus, "Abschnitt 1", 1)
_GUICtrlStatusBar_SetText($hStatus, "Abschnitt 2", 2)
; Setzt die minimale Höhe
_GUICtrlStatusBar_SetMinHeight($hStatus, 30)
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example