Ets_Tree_Element_Icon_Set()
Note: Requires OPNET Development Kit
Abstract
Associates the given icon with the element.
Syntax
Ets_Tree_Element_Icon_Set (element_ptr, type, icon_ptr)
| Argument | Type | Description |
|---|---|---|
element_ptr |
EtsT_Tree_Element * |
Pointer to element. |
type |
EtsC_Tree_Icon_Type |
Type of icon (see Details). |
icon_ptr |
const char * |
Name of icon. |
Return Type
void
No return value.
Header
ets_api_gui.h
Details
Modifies the icon associated with a specific tree element to be icon_ptr. The icon will be updated the next time that the treeview containing the element is redrawn. The tree is NOT redrawn as a result of this call.
The user has the choice of setting either the closed icon or the open icon, based on the type argument, which can take as values either EtsC_Tree_Icon_Open or EtsC_Tree_Icon_Closed. The closed icon is displayed by default. If the tree element has children, and the element has been opened with a click on its plus sign, then the open icon is used to display its contents. The icon must be present in an icon database that is listed in the icon_dbs preference.