RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.TDrawTabEvent Type

TDrawTabEvent is the type for event handlers that render the tab of an owner-drawn TTabSet control.

Pascal
TDrawTabEvent = procedure (Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; Active: Boolean) of object;
C++
(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; Active: Boolean) ( TDrawTabEvent)();

Control is the tab control on which a tab is to be drawn. 

TabIndex is the position of the tab that is to be drawn. 

Rect is the area in which the tab is to be drawn. 

Active indicates whether the tab is active.

Note: The TDrawTabEvent type defined in the tabs unit for the OnDrawTab event handler differs from the TDrawTabEvent type defined in the comctrls unit. Do not use the comctrls unit in source files where you are working with the tab control.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!