RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTabControl.DrawTab Method

Tab drawing event dispatcher.

Pascal
procedure DrawTab(TabIndex: Integer; const Rect: TRect; Active: Boolean); virtual;
C++
virtual __fastcall DrawTab(int TabIndex, const TRect Rect, Boolean Active);

Override DrawTab in a derived class to control the painting of tabs. 

TabIndex is the index of the tab that requires painting. 

Rect is the area in which the tab should be painted. 

Active is whether the tab is active. 

Use the Canvas property to paint the tab. 

 

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