Ets_Tree_Element_Status_Set()
Note: Requires OPNET Development Kit
Abstract
Modifies the status flags associated with the element pointer.
Syntax
Ets_Tree_Element_Status_Set (element_ptr, status)
| Argument | Type | Description |
|---|---|---|
element_ptr |
EtsT_Tree_Element * |
Pointer to an element. |
status |
int |
Status information (see Details). |
Return Type
void
No return value.
Header
ets_api_gui.h
Details
Status flags specify whether the element is selected and whether it is “open”. Only one element in a tree can be selected at a time. Setting the selected flag on an element will turn off the selected flag for all other elements in the tree. Changing the open status of an element to “open” will cause an expand callback to be called for the tree.
The status argument consists of the following combination of flags OR’ed together:
ETSC_TREE_ELEMENT_OPT_NONE—None of the option statuses is set.ETSC_TREE_ELEMENT_OPT_SELECTED—The element is selected.ETSC_TREE_ELEMENT_OPT_COMPUTE_CHILDREN—The element has a compute child handler.ETSC_TREE_ELEMENT_OPT_OPEN—The child elements are visible.
To set the OPT_SELECTED flag, you should OR the current status value with OPT_SELECTED, as follows:
status |= ETSC_TREE_ELEMENT_OPT_SELECTED;
To get the status, use Ets_Tree_Element_Status_Get().