Category Creo Parametric user interface, Object ProPopupmenu

Function ProPopupmenuCascadebuttonAdd


Description
Adds cascade to the existing menu.
Synopsis
#include <ProPopupmenu.h>
ProErrorProPopupmenuCascadebuttonAdd(
ProPopupMenuId menu_id
/* (In)
The id of the Popup menu.
*/
int position
/* (In)
Position at which to add the cascade button. Pass PRO_VALUE_UNUSED to append to the end of the relevant menu.
*/
ProMenuName cascade_menu_name
/* (In)
The cascade menu name (must be unique)
*/
ProLine cascade_menu_label
/* (In)
The cascade menu label. To localize this obtain and pass a message string from ProMessageToBuffer().
*/
ProLine cascade_menu_helptext
/* (In)
The cascade menu helptext. To localize this obtain and pass a message string from ProMessageToBuffer().
*/
ProPopupmenuAccessFunction access_status
/* (In)
The accessibility function for the added Menu Item. This argument is allowed to be NULL, in which case the item will be always accessible.
*/
ProAppData appdata
/* (In)
userdata to be given to any menu callback This argument is allowed to be NULL.
*/
ProPopupMenuId* casc_menuId
/* (Out)
menuId of the newly added cascade menu.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created a Cascade Menu.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_E_FOUNDCascade menu was already found.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Checking the Access State of a Popup Menu Item