MaxGUI - TreeView - Need to know ID-node

BlitzMax Forums/MaxGUI Module/MaxGUI - TreeView - Need to know ID-node

degac(Posted 2009) [#1]
Hi,
I have a treeview with some items.

+ node
| item1 (0)
| item2 (1)
| item3 (2)

I need to retrieve the NUMBER of the ITEM (0,1 or 2) the user has selected.
I know the items of each node are in the KIDS list, I can count them (via CountTreeViewNodes(node:tgadget) function) but I would like to know what item of these is selected.
The function SelectedTreeViewNode() returns a gadget-node, so the info is not very useful in this case.

I'd like a function like SelectedTreeViewNodeID(node)...

If someone has a simple solution...

Cheers


jsp(Posted 2009) [#2]
This could may help:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1765


degac(Posted 2009) [#3]
@jsp: perfect! Thanks!