Treeview - different pics for nodes?

token

Member
Licensed User
Hello,

is it possible to change the picture of a single node in a treeview, or at least to deactivate the picture for single nodes? I plan to make some kind of file manager and listet files shouldn't have a directory symbol.

Thanks for any help!
 

token

Member
Licensed User
You can set the image of each node.
Use Node.ImageIndex and set it to the index of the image you want.

Thank you very much for your help, Erel but somehow it doesn't work for me. I'am using your treeview-example and tryed it with control(node).imageindex and node2.imageindex in the findfolders-sub, but without success. control(node).imageindex within the findfolders loop always changes the whole tree and node2.imageindex brings a compiler error.

Perhaps you have some further adwise for me?

Thanks in advance and nice regards:

token
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…