C4 Engine
C4 Engine API Documentation


Defined in:  C4Widgets.h
Adds an item to the end of a tree.

void AppendTreeItem(TreeItemWidget *item);

item The item to add to the tree.
The AppendTreeItem function adds an item to the end of a tree at the top level of the hierarchy.

Note that unless that kListItemsEnabled flag has been set with the ListWidget::SetListFlags function, the item added to the tree is disabled before the AppendTreeItem function returns so that clicks go through to the tree widget. To allow an item in a tree or any of its subwidgets to receive events, call the Widget::EnableWidget function for that item after adding it to the tree.
See Also