Category Menu manager menus, Object ProMenu

Function ProMenuAuxfileRegister


Description
Extends an existing Creo Parametric menu by reading in an auxiliary menu file. This enables you to maintain additions to standard Creo Parametric menus in separate files, but have them appear as part of the Creo Parametric menu file.

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

The recommended way of adding new items to the standard Creo Parametric menus is as follows:

  • The menu menuname must have been loaded via ProMenuFileRegister() before this function can be called, and it cannot be active on the screen at the time of this call.
  • The argument filename must be different from the standard Creo Parametric menu name.
  • The contents of filename must adhere to the Creo Parametric menu standards. Specifically, the first three lines must be the same as the Creo Parametric menu file, after which this file need only contain your additions.
Synopsis
#include <ProMenu.h>
ProErrorProMenuAuxfileRegister(
ProMenuName menuname
/* (In)
The name of the menu.
*/
ProMenufileName filename
/* (In)
The name of the auxiliary menu file.
*/
int* menu_id
/* (Out)
The identifier of the extended menu This argument can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully extended the menu.
PRO_TK_GENERAL_ERRORThe auxiliary menu file was not found.
See Also
ProMenuFileRegister

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Techniques of Conversion and Mixing
  2. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  3. User Interface: Menus, Commands, and Popupmenus: Adding a Menu Button
  4. User Interface: Menus, Commands, and Popupmenus: Adding a Menu Button
  5. User Interface: Menus, Commands, and Popupmenus: Adding a Menu Button
  6. User Interface: Menus, Commands, and Popupmenus: New Menus
  7. User Interface: Menus, Commands, and Popupmenus: Manipulating Menus

Sample Code References:

  1. pt_examples ( TestFeats.c )
  2. pt_examples ( TestMain.c )
  3. pt_examples ( TestMain.c )
  4. pt_examples ( TestMain.c )
  5. pt_examples ( TestMain.c )
  6. pt_examples ( TestMain.c )
  7. pt_examples ( TestMain.c )
  8. pt_examples ( TestMain.c )
  9. pt_examples ( TestMain.c )
  10. pt_examples ( TestMain.c )
  11. pt_examples ( TestMain.c )
  12. pt_examples ( TestMain.c )
  13. pt_examples ( TestMain.c )
  14. pt_examples ( TestMain.c )
  15. pt_examples ( TestMain.c )
  16. pt_userguide ( UgMain.c )
  17. pt_userguide ( UgMain.c )
  18. pt_userguide ( UgMain.c )
  19. pt_userguide ( UgMain.c )
  20. pt_userguide ( UgMain.c )
  21. pt_userguide ( UgMenuMenuButtonAdd.c )