RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CustomDraw Method

Generates an OnCustomDraw or OnAdvancedCustomDraw event.

Pascal
function CustomDraw(const ARect: TRect; Stage: TCustomDrawStage): Boolean; virtual;
C++
virtual __fastcall Boolean CustomDraw(const TRect ARect, TCustomDrawStage Stage);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!