Getting informations from a treeview

BlitzMax Forums/MaxGUI Module/Getting informations from a treeview

mikelandzelo(Posted 2007) [#1]
I really love the TreeView gadget. But it's also very tricky to handle. For my program I'd like to store the informations from the treeview. Is this even possible?



You can see the treeview to the right. I'd like to store this tree into the database (using SQLite).


Probably I will use a different method: I will store the informations temporarily into the memory and then (when I choose "Save") I will copy the db infos to the project file.
Loading will be no problem.


But is it possible to get informations from a treeview without clicking it, etc.. ?


Regards,
Michael


SebHoll(Posted 2007) [#2]
Do you mean find out nodes without getting an event? You need to loop through a gadget's kid field. I rustled up the following example (originating from the CreateTreeView sample in the docs). It should present the nodes in a text format in the message box...




mikelandzelo(Posted 2007) [#3]
That's what I was looking for.
Thanks man!