Function Reference


_GUICtrlTab_SetItemSize

Sets the width and height of tabs in a fixed width or owner drawn control

#include <GuiTab.au3>
_GUICtrlTab_SetItemSize ( $hWnd, $iWidth, $iHeight )

Parameters

$hWnd Control ID/Handle to the control
$iWidth New width, in pixels
$iHeight New height, in pixels

Return Value

Returns the old width and height.
    The width is in the low order word of the return value, and the height is in the high-order word.

Example

#include <GUIConstantsEx.au3>
#include <GuiTab.au3>

Example()

Func Example()
        Local $idTab

        ; Create GUI
        GUICreate("Tab Control Set Item Size", 400, 300)
        $idTab = GUICtrlCreateTab(2, 2, 396, 296, BitOR($TCS_BUTTONS, $TCS_FIXEDWIDTH))
        _GUICtrlTab_SetItemSize($idTab, 70, 40)
        GUISetState(@SW_SHOW)

        ; Add tabs
        _GUICtrlTab_InsertItem($idTab, 0, "Tab 1")
        _GUICtrlTab_InsertItem($idTab, 1, "Tab 2")
        _GUICtrlTab_InsertItem($idTab, 2, "Tab 3")

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