Function Reference


_GUICtrlStatusBar_SetMinHeight

Sets the minimum height of a status window's drawing area

#include <GuiStatusBar.au3>
_GUICtrlStatusBar_SetMinHeight ( $hWnd, $iMinHeight )

Parameters

$hWnd Handle to the control
$iMinHeight Minimum height, in pixels, of the window

Return Value

None.

Related

_GUICtrlStatusBar_GetHeight

Example

#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>

Example()

Func Example()
        ; Create GUI
        Local $hGUI = GUICreate("StatusBar Set Min Height (v" & @AutoItVersion & ")", 400, 300)
        Local $hStatus = _GUICtrlStatusBar_Create($hGUI)
        GUISetState(@SW_SHOW)

        ; Set parts
        Local $aParts[3] = [75, 150, -1]
        _GUICtrlStatusBar_SetParts($hStatus, $aParts)
        _GUICtrlStatusBar_SetText($hStatus, "Part 0")
        _GUICtrlStatusBar_SetText($hStatus, "Part 1", 1)
        _GUICtrlStatusBar_SetText($hStatus, "Part 2", 2)

        ; Set minimum height
        _GUICtrlStatusBar_SetMinHeight($hStatus, 30)

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