Function ProPopupmenuButtonAdd
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>
ProPopupmenuButtonAdd
(
/* (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.
*/
/* (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
The function successfully added a menu item.
One or more arguments was invalid.
Button already exists.
The command type is not supported.
Invalid command.
Sample Code References
User Guide References
これは役に立ちましたか?