[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomTabControl.TabWidth

Width in pixels for the tabs on the control.

## Declaration

Source position: comctrls.pp line 511

`public property TCustomTabControl.TabWidth : SmallInt read FTabWidth write SetTabWidth stored TabWidthIsStored;`

## Description

TabWidth is a SmallInt property which contains the number of pixels used as the width for the tabs displayed on the tabbed control. The default value is 0 (zero) when an explicit value has not been assigned, and causes the default width for the native tab control to be used.

Changing the value for the property causes the widgetset class instance to be updated with the new value. The property value is included in the LCL component streaming mechanism when an explicit positive non-zero value has been assigned in the class instance. The value may be resized using a scaling factor in the DoAutoAdjustLayout method.

Remark: | Use of TabWidth requires support for the feature in the native tab control. The property value is not used if nbcTabsSizeable is not included in the capabilities for the platform (GetCapabilities).

Use TabHeight to set the height for the tabs on the control.

## Version info

Modified in LCL version 3.0 to use a storage specifier for the property value in LCL component streaming.

## See also

TCustomTabControl.TabHeight |  | Height in pixels for the tabs on the control.
TCustomTabControl.Style |  | Indicates the appearance or display style used for the tabs on the control.
TCustomTabControl.ShowTabs |  | Enables display of tabs on the control when set to True (default).
TCustomTabControl.GetCapabilities |  | Gets the set of platform-specific tab control options supported for the widgetset.
TCustomTabControl.DoAutoAdjustLayout |  | Performs actions needed to apply the specified auto-adjust layout policy.