Category Menu manager menus, Object ProMenubutton

Function ProMenubuttonPostactionSet


Description
Binds a user function so it is called after Creo Parametric has finished executing the action associated with the specified button.

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

Synopsis
#include <ProMenu.h>
ProErrorProMenubuttonPostactionSet(
ProMenuName menuname
/* (In)
The name of the menu.
*/
ProMenubuttonName button
/* (In)
The name of the menu button.
*/
ProMenubuttonAction action
/* (In)
The callback function to be called before the Creo Parametric command. This function must return a value of 0 to return control to Creo Parametric.
*/
ProAppData app_data
/* (In)
The general application data passed to the callback function when it is called.
*/
int app_int
/* (In)
The integer application data passed to the callback function when it is called.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the post-action.
PRO_TK_GENERAL_ERRORThere was a general error 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: New Menus

Sample Code References:

  1. pt_examples ( TestMenu.c )