Ets_Tree_Element_Status_Get()

Note: Requires OPNET Development Kit

Abstract

Provides the status of an element

Syntax

Ets_Tree_Element_Status_Get (element_ptr)
Argument Type Description
element_ptr EtsT_Tree_Element * Pointer to an element.

Return Type

int

Element status (see Details).

ets_api_gui.h

Details

Returns an integer with encoded information regarding the status of the element in question. Status information includes whether the element is currently selected, whether it is “open”, and so on. The result will have the following combination of flags OR’ed in:

  • 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 determine whether the return value has OPT_SELECTED set, you would AND the returned value with OPT_SELECTED and if the resulting value is not zero, the flag is set. If it is zero, it is not set. For example:

if (return_value & ETSC_TREE_ELEMENT_OPT_SELECTED != 0)…															/* flag is set */

To set the status, use Ets_Tree_Element_Status_Set().

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