C4 Engine
C4 Engine API Documentation

TreeWidget::PrependTreeItem

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

void PrependListItem(TreeItemWidget *item);

Parameters
item The item to add to the tree.
Description
The PrependTreeItem function adds an item to the beginning 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 PrependTreeItem 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

TreeWidget::AppendTreeItem