Select Treeview node

BlitzMax Forums/MaxGUI Module/Select Treeview node

Hezkore(Posted 2011) [#1]
Many started threads for such simple questions, sorry about that. :/
This question is about the treeview gadget.
I have a treeview gadget and I'd like to force a selection, like root.SelectNode(), any way of doing that?


skidracer(Posted 2011) [#2]
SelectTreeViewNode


Hezkore(Posted 2011) [#3]
That doesn't make sense... what Tree am I selecting in? or what node am i selecting?
SelectTreeViewNode only takes one parameter.

Also, how would I get the "text" from a selected node?

Last edited 2011


skidracer(Posted 2011) [#4]
Nodes are TGadget types not indexed items in MaxGUI.

Both AddTreeViewNode and InsertTreeViewNode return node gadgets that can be used as parameters to the SelectTreeViewNode function.

GadgetText and SetGadgetText can be used with node gadgets.

Last edited 2011


Grisu(Posted 2011) [#5]
Btw: Is there a cross-platform solution to give a tree item a tooltip?