Showing results for 
Search instead for 
Did you mean: 

How do you get the tag of a tree control's last-clicked row?

Go to solution

The API for tree controls is infuriatingly obtuse. 😠


In response to an event not fired by the tree control, I need to query the currently selected item in the tree and get its tag so I can manipulate the item and its children. How is this done? I found the "Set Tag" method, but there's no "Get Tag". In fact, the only way to get any item's tag appears to be through the "Point to Row Column" method, which takes a pair of pane coordinates as input! It's baffling!

0 Kudos
Message 1 of 3

I believe the value of control is the currently selected tag, so just read the terminal.

Try to take over the world!
0 Kudos
Message 2 of 3
Accepted by topic author David_Staab

Oh jeez. The tree's value is the tag of its currently selected item. It's so easy that I never thought to look there for it, given the complexity of almost every other action in the API.



0 Kudos
Message 3 of 3