Category Menu manager menus, Object ProMenu

Function ProMenuCommandPush


Description
Puts the specified menu button in the command input buffer for Creo Parametric, so that command will be executed as soon as control returns to Creo Parametric from the Creo Parametric TOOLKIT application, exactly as if the user has selected that button.

This function affects Menu-Manager (mode-specific) menus only.

The button must be one that is currently selectable -- that is, on a menu currently being displayed.

Synopsis
#include <ProMenu.h>
ProErrorProMenuCommandPush(
ProMenubuttonName command
/* (In)
The command to be pushed
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully pushed the command.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  3. User Interface: Menus, Commands, and Popupmenus: Execution Rules

Sample Code References:

  1. pt_examples ( TestFeats.c )
  2. pt_examples ( TestDtmPln.c )
  3. pt_examples ( TestDtmPln.c )
  4. pt_examples ( TestExtrude.c )
  5. pt_examples ( TestExtrude.c )
  6. pt_examples ( TestExtrude.c )
  7. pt_examples ( TestMenu.c )