Vcl.ComCtrls.TTabControl.OnDrawTab
Delphi
property OnDrawTab: TDrawTabEvent read FOnDrawTab write FOnDrawTab;
C++
__property OnDrawTab;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTabControl |
Description
Occurs when a tab is about to be drawn. {{#multireplace:Vcl.ComCtrls.TTabControl.OnDrawTab|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.ComCtrls.TCustomTabControl.OnDrawTab|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.ComCtrls.TCustomTabControl.OnDrawTab|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Occurs when a tab is about to be drawn.
Use OnDrawTab to customize the painting of tabs.
You can paint the tab using the Canvas property.
OnDrawTab is an event handler of type Vcl.ComCtrls.TDrawTabEvent. See TDrawTabEvent for a description of the parameters.