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.
Header
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.