xetra11 Posted July 13, 2016 Share Posted July 13, 2016 Hey guys,I just played around a bit with Gui Controls and now used the "GuiTreeViewCtrl" which seems best for my XML Editor GUI I try to create. Using this Container Control was okay while adding buttons and Text Labels (Controls).But when I call the API of the GuiTreeViewCtrl for inserting an item XmlEditorGui.insertItem(0, "FirstItem", "100"); The item gets inserted which I evaluated with some echoes and calling "getItemValue(1)" function but I do not see any elements in the Gui itself like the adding of buttons etc did.I'm sure I'm missing something here. Can you guys tell me what little trick I need to do to actually see that tree structure?EDIT: I thought about hooking onto the event for adding an item and then dynamically add a GuiTextCtrl with the values of that added field - but I could not find an event for the adding of an item, only one for removing.Greets Charlie! Quote Link to comment Share on other sites More sharing options...
xetra11 Posted July 13, 2016 Author Share Posted July 13, 2016 Thanks to the guys in the chat XmlEditorGui.buildVisibleTree(1); was needed to actually force a redraw of the tree! thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.