Ets_Nt_Popup_Menu_Open()

Abstract

Opens a pop-up menu, specifying a callback function to be called when the selection is made.

Syntax

Ets_Nt_Popup_Menu_Open (menu_item_lptr, select_proc, state_ptr)
Argument Type Description
menu_item_lptr Prg_List * the textlist contains the contents of the menu. Each entry is an entry in the menu.
select_proc EtsT_Nt_Popup_Menu_Callback function to call when the selection is made (see Details).
state_ptr void * arbitrary state which the user wants to pass into the callback when it is called.

Return Type

void

No return value.

ets_api_nt_cback.h

Details

Allows you to open up a pop-up menu and pass in a callback function such that when the user makes a selection from the menu, the callback is called with the specified selection.

This function should be used in conjunction with the click handler callback. For example, when the user clicks on the object, you can bring up an object-specific menu.

The callback function prototype is given in EtsT_Nt_Popup_Menu_Callback.

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