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