I’m attempting to use a TreeView to display presets, and I have a bit of an odd query. You can move the selection item-by-item with the up and down arrow keys if the component has focus. However, I can’t for the life of me find any sort of callback where I’m notified that the selected item has been changed.
The way I see it, there are two options:
Have a timer callback that checks to see if the selected item has changed, and changes the preset appropriately (this just sounds stupid now that I’ve typed it out; it made sense in my head though…)
Listen for key up of both up and down arrow keys, and load whatever’s selected on key up. This doesn’t sound as stupid as option 1.
I feel like there’s an obvious callback that I can’t find, but I’d like to think I could be forgiven since TreeView and its accouterments aren’t the world’s most obvious family of classes. Anyone?