Sets the minimum width of items in a tab control
#include <GuiTab.au3>
_GUICtrlTab_SetMinTabWidth ( $hWnd, $iMinWidth )
$hWnd | Control ID/Handle to the control |
$iMinWidth | Minimum width to be set for a tab control item. If -1, the control will use the default width. |
#include <GUIConstantsEx.au3>
#include <GuiTab.au3>
Example()
Func Example()
Local $idTab
; Create GUI
GUICreate("Tab Control Set Min Tab Width", 400, 300)
$idTab = GUICtrlCreateTab(2, 2, 396, 296)
GUISetState(@SW_SHOW)
; Add tabs
_GUICtrlTab_SetMinTabWidth($idTab, 80)
_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