Vcl.ComCtrls.TCustomTabControl.DrawTab
Delphi
procedure DrawTab(TabIndex: Integer; const Rect: TRect; Active: Boolean); virtual;
C++
virtual void __fastcall DrawTab(int TabIndex, const System::Types::TRect &Rect, bool Active);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTabControl |
Description
Tab drawing event dispatcher.
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.