this isnt right? TreeView thing~

Blitz3D Forums/Blitz3D Beginners Area/this isnt right? TreeView thing~

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

AddTreeViewNode expects a node handle as the second parameter. You're trying to give it a treeview gadget handle.

TreeViewRoot returns the root node handle. So, to add the first node, do this:
meownode = AddTreeViewNode( "meow",TreeViewRoot( tree ) )

To add more nodes on the same "level", use "TreeViewRoot(tree)" as the seconds parameter. To add "child" nodes, use "meownode" as the second parameter.