Vcl.ComCtrls.TCustomTreeView.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 | TCustomTreeView |
Description
Generates an OnCustomDraw or OnAdvancedCustomDraw event.
CustomDraw is called automatically at discrete stages in the painting process. It determines what event handlers, if any, are appropriate for the current drawing stage, and generates the appropriate events.
ARect is the boundaries of the tree view in the coordinates of the Canvas property.
Stage is the current stage of the painting process.
CustomDraw returns true if the tree view should continue with the default painting process, false if the method has completely rendered the tree view and there is no more painting to be done.