RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.TTVAdvancedCustomDrawEvent Type

Used in the TCustomTreeView.OnAdvancedCustomDraw event.

Pascal
TTVAdvancedCustomDrawEvent = procedure (Sender: TCustomTreeView; const ARect: TRect; Stage: TCustomDrawStage; var DefaultDraw: Boolean) of object;
C++
(Sender: TCustomTreeView; const ARect: TRect; Stage: TCustomDrawStage; var DefaultDraw: Boolean) ( TTVAdvancedCustomDrawEvent)();

This event is used in the TCustomTreeView.OnAdvancedCustomDraw event when a tree-view control is being painted. 

Sender is the tree-view control that is being painted.  

ARect is the rectangle that defines the boundaries of the tree-view control on its canvas.  

Stage indicates the current stage of the painting process. 

DefaultDraw specifies whether the control should paint itself after the event handler exits. This parameter is only used when Stage is cdPrePaint

 

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