Skip to main content

TcxCustomTabControl Class

The base class for TcxTabControl and TcxPageControl components.

Declaration

TcxCustomTabControl = class(
    TcxControl,
    IcxTabControl,
    IcxControlComponentState,
    IcxMouseTrackingCaller,
    IcxMouseTrackingCaller2,
    IdxSkinSupport
)

Remarks

Tab controls are designed to arrange UI elements into multiple pages. Users can click tabs to switch between corresponding pages. The TcxTabControl displays tab-dependent content using the same page layout. If you need to display different UI elements on different pages, use the TcxPageControl component instead.

VCL Page Control: A Tab Control-Based Application Example

Main API Members

The list below outlines key members of the TcxCustomTabControl class.

User Interaction Options

OnCanClose | OnCanCloseEx
Allow you to prevent users from closing tabs that meet specific criteria.
OnChange
Allows you to respond to tab activation.
OnChanging
Allows you to prevent users from activating tabs that meet specific criteria.

General-Purpose API Members

CloseTab
Closes the specified tab.
IndexOfTabAt
Returns the index of a tab located at the specified point.
Properties
Provides access to tab control settings.
ScrollTabs
Scrolls the tab by the specified number of tabs (if the total tab width exceeds the tab control width).
SetStandardStyle
Allows you to switch between supported tab display modes.

Terminal TcxCustomTabControl Class Descendant

Do not use the TcxCustomTabControl class directly. Use the following components instead:

TcxTabControl
A tab control.
TcxPageControl
A page control.
See Also