EtsT_Obj_Model_Menu_Choose_Handler

Abstract

Callback: Used to allow custom processing of a selection from an Object pop-up menu.

Syntax

<model_menu_choose_handler_name> (obj_handle, chosen_str_ptr)
Argument Type Description
obj_handle EtsT_Obj_Handle Handle to the object that was clicked.
chosen_str_ptr const char * Menu item string that was chosen.

Return Type

EtsT_Obj_Click_Return

One of the following constants:

EtsC_Obj_Click_Continue— indicates that the application should continue handling the click.

EtsC_Obj_Click_Handled— indicates that the click has been handled and the application should not do any further processing.

ets_api_obj.h

Details

Model menu choose handlers let you perform custom processing of an item selected by a user from an Object pop-up menu. If a model menu display handler has been called in response to a right-click event and it returned EtsC_Obj_Click_Continue, the application calls the corresponding menu choose handler when the user makes a choice from the pop-up menu that was displayed.

The model menu choose handler is passed a handle to the object that was clicked and the menu item string that was selected. After processing the menu item, the handler can tell the application to continue processing the event or to stop processing it.

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