RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTabControl Class

TCustomTabControl is the base type for tab control components such as TTabControl and TPageControl.

Pascal
TCustomTabControl = class(TWinControl);
C++
class TCustomTabControl : public TWinControl;

ComCtrls

Use TCustomTabControl as a base class when defining a control that includes a set of notebook style tabs across the top. TCustomTabControl introduces many properties, methods, and events to manage appearance and behavior of the tabs, and to respond when the user selects one of the tabs.

Note: When using one of the page controls, if you want to restrict a user from switching to a tab, you cannot set TTabSheet.Enabled to false to accomplish that restriction. Instead, use the OnChanging event to prevent the user from selecting a tab.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!