RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.IsCustomDrawn Method

Specifies when the control should generate custom draw events.

Pascal
function IsCustomDrawn(Target: TCustomDrawTarget; Stage: TCustomDrawStage): Boolean; virtual;
C++
virtual __fastcall Boolean IsCustomDrawn(TCustomDrawTarget Target, TCustomDrawStage Stage);

TCustomTreeView checks IsCustomDrawn to determine when to generate an OnCustomDraw, OnAdvancedCustomDraw, OnCustomDrawItem, or OnAdvancedCustomDrawItem event. IsCustomDrawn returns true when the tree view should generate an event. 

The Target parameter indicates whether the tree view is about to draw the entire tree or about to draw a node. IsCustomDrawn does not return true unless the tree view has an appropriate event handler for the target. 

The Stage parameter indicates the current stage in the process of painting the tree view. IsCustomDrawn returns true if the stage is cdPrePaint or if there is an advanced custom draw event handler for the target. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!