08-29-2012 11:59 AM
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!
Solved! Go to Solution.
08-29-2012 12:04 PM
I believe the value of control is the currently selected tag, so just read the terminal.
08-29-2012 12:04 PM
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.
*sigh*