I've messed around with some functions and I tried it also with
But this works only, if I add new items to the TreeView manually (via my self-programmed interface). If I create the tree structure with the showTreeView()-function it will NOT work, weird...
And thats bad, if I want to load the tree from a save file.
Maybe someone can help me?
---
Another problem:
How can I remove a single item from the tree? I tried it with:
But it gives me an error: I need to declare an Integer (2nd argument) and I do have a TGadget. So how do I get the Int-value of the selected item (SelectedTreeViewNode)?
THX in advance
RedrawGadget(TreeView)
But this works only, if I add new items to the TreeView manually (via my self-programmed interface). If I create the tree structure with the showTreeView()-function it will NOT work, weird...
And thats bad, if I want to load the tree from a save file.
Maybe someone can help me?
---
Another problem:
How can I remove a single item from the tree? I tried it with:
RemoveGadgetItem(TreeView,SelectedTreeViewNode(TreeView))
But it gives me an error: I need to declare an Integer (2nd argument) and I do have a TGadget. So how do I get the Int-value of the selected item (SelectedTreeViewNode)?
THX in advance