Category Menu manager menus, Object ProMenu

Function ProMenuModeSet


Description
Sets the mode of the specified menu. You must call this function after ProMenuFileRegister(), but before ProMenuCreate().

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

Synopsis
#include <ProMenu.h>
ProErrorProMenuModeSet(
ProMenuName menuname
/* (In)
The name of the menu.
*/
ProMenuMode mode
/* (In)
The menu mode. The possible values are PROMENUMODE_OPERATIONAL (the selected button remains highlighted only during the action of the command) and PROMENUMODE_DATA (the menu buttons are alternately highlighted and unhighlighted on selection).
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the mode.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
See Also
ProMenuCreate
ProMenuFileRegister

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: Data Menus
  3. User Interface: Menus, Commands, and Popupmenus: Data Menus
  4. User Interface: Menus, Commands, and Popupmenus: Setting Menu Buttons

Sample Code References:

  1. pt_examples ( TestImportfeat.c )
  2. pt_examples ( TestInterface.c )
  3. pt_examples ( TestMenu.c )
  4. pt_examples ( TestNotify.c )
  5. pt_examples ( UtilMenu.c )
  6. pt_userguide ( UgMenuBitsChange.c )