EControl Syntax Editor SDK
TSyntaxTreeView.OnAdvancedCustomDrawItem Property

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

property OnAdvancedCustomDrawItem;

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

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) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!