Category Menu manager menus, Object ProMenubutton

Function ProMenubuttonDelete


Description
Permanently disables a menu item by removing a specified button from a menu. It can be called only after the menu has been read in by ProMenuFileRegister() and while the menu is not active.

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

Synopsis
#include <ProMenu.h>
ProErrorProMenubuttonDelete(
ProMenuName menuname
/* (In)
The name of the menu.
*/
ProMenubuttonName button
/* (In)
The name of the menu button.
*/
int* result
/* (Out)
The result. The possible values are as follows:
  • 1 -- Everything worked.
  • 0 -- The menu has not been created (see the function ProMenuFileRegister()).
  • -1 -- The menu is already active.
  • -2 -- The specified button does not exist in the specified menu.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully deleted the menu button.
PRO_TK_GENERAL_ERRORThere was a general error and the function failed.
See Also
ProMenuFileRegister

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions

Sample Code References:

  1. pt_examples ( TestMenu.c )
  2. pt_examples ( UtilMenu.c )