Ets_Tree_Element_Child_Add()
Note: Requires OPNET Development Kit
Abstract
Place the given node in the tree as a child of the given parent.
Syntax
Ets_Tree_Element_Child_Add (parent_ptr, child_ptr, position)
| Argument | Type | Description |
|---|---|---|
parent_ptr |
EtsT_Tree_Element * |
Parent node to which node is to be added. |
child_ptr |
EtsT_Tree_Element * |
Node to be added. |
position |
int |
Position under parent to which to be added. |
Return Type
void
No return value.
Header
ets_api_gui.h
Details
This function adds child as a child node of the parent, parent_ptr. The position specifies where in the parent's child list the node being added will be placed.
See Ets_Tree_Element_Child_Count() to get the number of children of the node or Ets_Tree_Element_Child_Nth() to get the nth child. Ets_Tree_Element_Create() creates a tree element. To refresh the control, call Ets_Ctl_Tree_Refresh().