Category Menu manager menus, Object ProMenubutton

Function ProMenubuttonGenactionSet


Description
Specifies the action to perform when the user selects a particular menu button added by the Creo Parametric TOOLKIT application. This function performs the same task as ProMenubuttonActionSet(), but provides for more application data.

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

See the function ProMenubuttonActionSet() for more information on these two functions.

Synopsis
#include <ProMenu.h>
ProErrorProMenubuttonGenactionSet(
ProMenuName menuname
/* (In)
The name of the menu
*/
ProMenubuttonName button
/* (In)
The name of the menu button
*/
ProMenubuttonGenaction action
/* (In)
The callback function
*/
ProAppData app_data1
/* (In)
The general application data passed to the callback function when it is called
*/
ProAppData app_data2
/* (In)
The general application data passed to the callback function when it is called
*/
ProAppData app_data3
/* (In)
The general application data passed to the callback function when it is called
*/
ProAppData app_data4
/* (In)
The general application data passed to the callback function when it is called
*/
ProAppData app_data5
/* (In)
The general application data passed to the callback function when it is called
*/
ProAppData app_data6
/* (In)
The general application data passed to the callback function when it is called
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully defined the button action.
PRO_TK_GENERAL_ERROREither the menu or the button does not exist.
See Also
ProMenubuttonActionSet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: Adding a Menu Button

Sample Code References:

  1. pt_examples ( TestFemmesh.c )
  2. pt_examples ( TestInterface.c )
  3. pt_examples ( TestDtmPln.c )
  4. pt_examples ( TestDtmPln.c )
  5. pt_examples ( TestDtlnote.c )
  6. pt_examples ( TestMenu.c )
  7. pt_examples ( TestSetup.c )
  8. pt_examples ( TestSetup.c )