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 "Extras\HelpFileInternals.au3"

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

Example()

Func Example()
    ; Create GUI
    Local $hGUI = GUICreate("Tab Set Item Size - v(" & @AutoItVersion & ")", 450, 300, 100, 100)
    Local $idTab = GUICtrlCreateTab(2, 2, 446, 266, BitOR($TCS_BUTTONS, $TCS_FIXEDWIDTH))
    _MemoMsgBoxStatus() ; Status creation

    GUISetState(@SW_SHOW)

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

    _MemoMsgBox($MB_SYSTEMMODAL, "Information", "Set Item Size")
    _GUICtrlTab_SetItemSize($idTab, 70, 40)

    _MemoMsgBoxStatus("", -1, $hGUI) ; no more action, wait GUI for closing

EndFunc   ;==>Example