Parse a Treeview?

BlitzMax Forums/BlitzMax Programming/Parse a Treeview?

Gabriel(Posted 2006) [#1]
How can I parse all the nodes in a treeview ( preferably without keeping them in a separate data-structure when I create them, as this can be wasteful when it's not really necessary. )

I see a CountTreeViewNodes() function which ( oddly ) returns the number of children rather than the total number. But aside from the odd naming convention, this is fine, I can recurse from the root node with this. But how do I *get* the child nodes?


Dreamora(Posted 2006) [#2]
.Kids:TList on TGadget saves all children


Gabriel(Posted 2006) [#3]
Aha, I didn't realise that was used for TreeViewNodes as well. Then the CountTreeViewNodes() function is not really needed, I guess. Thanks for that.