Sign in Join
FPDoc Onlineexperiment

TPageControl.TabWidth property

Member of TPageControlpublishedIn unit ComCtrls

Width in pixels for the tabs on the control.

Declaration

pascal
property TabWidth:;

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.

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.

This description is the one of ComCtrls.TCustomTabControl.TabWidth.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.