RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeView.OnAdvancedCustomDrawItem Event

Occurs at discrete stages during the painting of tree view nodes.

Pascal
property OnAdvancedCustomDrawItem: TTVAdvancedCustomDrawItemEvent;
C++
__property TTVAdvancedCustomDrawItemEvent OnAdvancedCustomDrawItem;

Write an OnAdvancedCustomDrawItem event handler to customize the painting of individual items in the tree view.

Note: OnAdvancedCustomDrawItem occurs at several stages during the paint process and allows you to suppress the default painting of tree node images while still allowing the default painting of the node. If you only need to use the cdPrePaint stage and do not want to suppress only the painting of tree node images, it is more efficient to use the OnCustomDrawItem event.
 

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