Discussion:
[Foxgui-users] Urgent: FXTreeList Question
Julia Dudascik (Contractor)
2017-06-08 19:38:07 UTC
Permalink
All

How do I add an item to the FXTreeList?
What I have is a list, which I want to add to my FXTreeList after my window
has been created.
The parent or father item is called "Data", and then the child items are
called "Data1", and "Data2".
I create an FXTreeItem (parent = new FXTreeItem("Data"), which I want as my
parent or father item.

I then need to add it to FXTreeList, so I do this:

treelist->appendItem(parent, "Data1");
treelist->appendItem(parent, "Data2");

When i run my application, nothing is displayed.
Please help. I need to know how to add the parent items and then the
subsequent child items.

Thanks
Julia

Loading...