Treeview and SetGadgetExtra

BlitzMax Forums/MaxGUI Module/Treeview and SetGadgetExtra

MacSven(Posted 2009) [#1]
How can i use the SetGadgetExtra to the Treeview?
I Have found some samples in this forum but then i am using this in my
Application it could not work.

Local root:TGadget=TreeViewRoot(treeview)
SetGadgetExtra(treeview,"Test")

This shows me the GadgetExtras to all then Root and Child.

Local help:TGadget=AddTreeViewNode("Help",root)
AddTreeViewNode "topic 1",help
AddTreeViewNode "topic 2",help
AddTreeViewNode "topic 3",help

Has anyone an idea?


jsp(Posted 2009) [#2]
Use the SetGadgetExtra with the Nodes you add instead of the treeview.

Local help:TGadget=AddTreeViewNode("Help",root)
Local Node1:TGadget = AddTreeViewNode "topic 1",help
SetGadgetExtra(Node1,"Test")
...
AddTreeViewNode "topic 2",help
AddTreeViewNode "topic 3",help


MacSven(Posted 2009) [#3]
Thanx, works for me.