How i can replace the images of a Treeview used to expand and collapse a node?

Go To StackoverFlow.com

2

I'm using the TCustomTreeView.OnCustomDrawItem event to change the color of the nodes of a TTreeview, but now i need to replace the image used to expand and collapse the nodes, but i'm stuck with this. How i can replace the images of a Treeview used to expand a collapse a node?

2012-04-04 21:53
by Salvador


3

A standard TTreeView component does not allow you to replace the expand/collapse images, either directly or via owner-drawing. You will have to find a third-party TreeView component that supports it.

2012-04-04 22:33
by Remy Lebeau
See VirtualTreeView for such a component - LU RD 2012-04-04 23:01
Ads