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.

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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com