EtsT_Nt_Object_Palette_List_Define_Callback
Note: Requires OPNET Development Kit
Abstract
Callback: Used to add or remove items from the object palette list.
Syntax
EtsT_Nt_Object_Palette_List_Define_Callback (model_h, obj_pal_lptr, state_ptr)
| Argument | Type | Description |
|---|---|---|
model_h |
EtsT_Model_Handle |
Network model containing the object palettes. |
obj_pal_lptr |
PrgT_List * |
List of object palette names. |
state_ptr |
void * |
Arbitrary client state. This pointer is the value that was passed when the callback was registered. |
Return Type
void
No return value.
Header
ets_api_nt_cback.h
Details
This function can be used to change a menu (for example, add or delete menu items). Each individual palette name is an allocated character array, so the memory for any names removed from the list must also be deleted. Accordingly, any additions to the list must be made with allocated memory and the ETS kernel will delete that memory automatically when the object palette list is deleted.
This function is registered by Ets_Nt_Object_Palette_List_Define_Callback_Register().