TreeWidget::AppendTreeItem
Defined in:
Adds an item to the end of a tree.
C4Widgets.h
Prototype
void AppendTreeItem(TreeItemWidget *item);
Parameters
item |
The item to add to the tree. |
Description
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