# Function Reference

# _GUICtrlTab_SetMinTabWidth

Sets the minimum width of items in a tab control

#include <GuiTab.au3>
_GUICtrlTab_SetMinTabWidth ( $hWnd, $iMinWidth )

## Parameters

$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.

## Return Value

Returns the previous minimum tab width.

## Example

    #include "Extras\HelpFileInternals.au3"

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

    Example()

    Func Example()
        Local $idTab

        ; Create GUI
        Local $hGUI = GUICreate("Tab Set Min Tab Width - v(" & @AutoItVersion & ")", 450, 300, 100, 100)
        $idTab = GUICtrlCreateTab(2, 2, 446, 266)
        _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 Width")
        _GUICtrlTab_SetMinTabWidth($idTab, 80)

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

    EndFunc   ;==>Example