Jump to content

Elements not visible within GuiTreeViewCtrl


xetra11

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...