Display Handler Functions

Abstract

Use this handler to display a new name for an existing attribute in the attribute’s dialog box

Syntax

<display handler name> (attr_name, orig_object, copy_object, display_str)
Argument Type Description
attr_name const char * Pointer to a string containing the object name
orig_object EtsT_Obj_Handle Handle for the original attribute object
copy_object EtsT_Obj_Handle Handle for a copy of the original attribute object
display_str char * Pointer to a string containing the new value

Return Type

EtsT_Obj_Dbox_Display_Options

Only value available is EtsC_Obj_Dbox_Display_Option.

Details

An application calls a display handler whenever the object attribute dialog box is drawn or redrawn. You can use this handler to display a different name for an attribute: for example, to display “High Threshold” or “Low Threshold” depending on a threshold attribute’s current setting. To change the attribute’s displayed name, copy the new name to the character buffer referenced by display_string. This is a pre-allocated buffer of 2048 characters; it is not allocated or deallocated by this handler.

Changing an attribute’s displayed name has no effect on the original attribute name.

This handler has no return options defined.

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