get item text of tree control
I have a tree object. When I click on an item in the tree, I can get the index of the item, but how can I get the text of the item as well?
Also how can I get the parent value of the child? Example:
If I click on 'Red', I'd like to get the text 'Red', and if it is a child node, also get the value 'Color' too. Again, I can get the index of the clicked item correctly, just how could I get the text using that index?