Vcl.ComCtrls.TToolBar.CustomDraw
Delphi
function CustomDraw(const ARect: TRect; Stage: TCustomDrawStage): Boolean; virtual;
C++
virtual bool __fastcall CustomDraw(const System::Types::TRect &ARect, TCustomDrawStage Stage);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Generates OnCustomDraw and OnAdvancedCustomDraw events.
CustomDraw is called automatically at discrete stages during the drawing process to generate the OnCustomDraw and OnAdvancedCustomDraw events.
ARect specifies the boundaries of the toolbar on the toolbar's Canvas.
Stage indicates the current stage of the paint process. When Stage is cdPrePaint, CustomDraw generates an OnCustomDraw event followed by an OnAdvancedCustomDraw event. At all other stages, CustomDraw generates only the OnAdvancedCustomDraw event.
CustomDraw returns true if the toolbar should continue with its default painting sequence, false if the painting sequence should end after the call.