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.

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().

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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