I have a treeview that when the user interacts with individual nodes, the colours change. The code is:
treeview.selectednode.forecolor = color.red;
When the user presses a button, I want the whole set of nodes to change to black for example. So I code as such:
treeview.forecolor = color.black;
It works fine, except for the nodes that I have previously changed to red. Is there a way to get around this?
Use this recursive function: