Treeview Expand/Collapse Nodes

BlitzMax Forums/MaxGUI Module/Treeview Expand/Collapse Nodes

ponyboy(Posted 2008) [#1]
How do I find out if a particular treeview node is expanded or collapsed? I'm trying to write code that when a node is double clicked, expands the node if it is collapsed, and collapses the node if it is expanded. Any variable within the node object that can give me this information? Right now I can only either expand or collapse (via Expand/Collapse functions). Thanks!


DavidDC(Posted 2008) [#2]
This stumped me a while back too. I guess you could create your own list and track the clicks manually. If you were using wxMax you could use IsExpanded()...


Brucey(Posted 2008) [#3]
Pehaps you need to keep your own node tree model and track open/closed-ness with that? :-)


ponyboy(Posted 2008) [#4]
I'll do that. Thanks for the advice guys.