Description | |||||||||||||||||
Add a new item to a Creo Parametric popup menu. This function supports pushbutton and checkbutton commands created by ProCmdActionAdd() and ProCmdOptionAdd(). | |||||||||||||||||
Synopsis | |||||||||||||||||
#include <ProPopupmenu.h> | |||||||||||||||||
ProError | ProPopupmenuButtonAdd | ( | |||||||||||||||
ProPopupMenuId menu_id | |||||||||||||||||
/* (In) | |||||||||||||||||
The id of the Popup menu. | |||||||||||||||||
*/ | |||||||||||||||||
int position | |||||||||||||||||
/* (In) | |||||||||||||||||
Position at which to add the menubutton. Pass PRO_VALUE_UNUSED to append to the end of the relevant menu. | |||||||||||||||||
*/ | |||||||||||||||||
ProMenuName button_name | |||||||||||||||||
/* (In) | |||||||||||||||||
The button name in the Popup Menu (must be unique) | |||||||||||||||||
*/ | |||||||||||||||||
ProLine button_label | |||||||||||||||||
/* (In) | |||||||||||||||||
The button label. To localize this obtain and pass a message string from ProMessageToBuffer(). | |||||||||||||||||
*/ | |||||||||||||||||
ProLine button_helptext | |||||||||||||||||
/* (In) | |||||||||||||||||
The button helptext. To localize this obtain and pass a message string from ProMessageToBuffer(). | |||||||||||||||||
*/ | |||||||||||||||||
uiCmdCmdId cmd_id | |||||||||||||||||
/* (In) | |||||||||||||||||
The command name. | |||||||||||||||||
*/ | |||||||||||||||||
ProPopupmenuAccessFunction access_status | |||||||||||||||||
/* (In) | |||||||||||||||||
The accessibility function for the added Menu Item. This function is in addition to the command accessibility function. This argument is allowed to be NULL, in which case the item accessibility will be the command accessibility. | |||||||||||||||||
*/ | |||||||||||||||||
ProAppData appdata | |||||||||||||||||
/* (In) | |||||||||||||||||
Application data to be supplied to the access function. This argument is allowed to be NULL. | |||||||||||||||||
*/ | |||||||||||||||||
) | |||||||||||||||||
Returns | |||||||||||||||||
|