[MaxGUI] How to clear a treeview?
BlitzMax Forums/BlitzMax Beginners Area/[MaxGUI] How to clear a treeview?
| ||
Hi, I'd like to clear a treeview gadget. Calling myTreeview.Clear() throws an "invalid gadget type"-error. Anyone knows how to do that? |
| ||
UseFreeTreeView(node_tree:tgadget) Don't use direct method in MaxGUI, sometimes they're not safe because there's more behind the scene |
| ||
FreeTreeView doesn't exist. You mean FreeTreeviewNode() ? Using this with root clears my tree, but how to add nodes again? |
| ||
In that case, clear all childs and let the root remain. |
| ||
Sorry for the error: I mean FreeTreeViewNode... |
| ||
Sure, there's no problem writing my own ClearTreeView(). But seeing Clear-commands for list/combo-boxes I thought there have to be a ClearTree-function I missed. |