Description | ||||||||
Enables you to interpose your own function into an existing Creo Parametric menu button. When the user selects that button, your function is called first, instead of the Creo Parametric function. The Creo Parametric function may or may not get called afterwards, depending on what value your functions returns (0 for success and 1 for failure).
This function affects Menu-Manager (mode-specific) menus only. Note that this has the same arguments as ProMenubuttonActionSet(), and, like that function, modifies the Creo Parametric definition of the menu. Therefore, you must call this function after ProMenuFileRegister(), which loads the menu into memory. |
||||||||
Synopsis | ||||||||
#include <ProMenu.h> | ||||||||
ProError | ProMenubuttonPreactionSet | ( | ||||||
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 | ||||||||
*/ | ||||||||
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 | ||||||||
|
||||||||
See Also | ||||||||
ProMenubuttonActionSet | ||||||||
ProMenuFileRegister |