Category Menu manager menus, Object ProMenubutton

Function ProMenubuttonVisibilitySet


Description
Controls the display status by removing a menu item from a menu. This function must be called after the menu was created (ProMenuFileRegister()) and before the menu is displayed (ProMenuCreate()).

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

The function cannot be used for menus created by Creo Parametric, only those defined by the Pro/TOOKIT application.

Synopsis
#include <ProMenu.h>
ProErrorProMenubuttonVisibilitySet(
ProMenuName menuname
/* (In)
The name of the menu
*/
ProMenubuttonName button
/* (In)
The name of the menu button
*/
ProBoolean visible
/* (In)
Specifies whether to make the menu item visible or invisible
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the visibility.
PRO_TK_GENERAL_ERRORThere was a general error and the function failed.
See Also
ProMenuCreate
ProMenuFileRegister

Sample Code References:

  1. pt_examples ( TestDimension.c )
  2. pt_examples ( TestDimension.c )
  3. pt_examples ( TestDimension.c )
  4. pt_examples ( TestDimension.c )
  5. pt_examples ( TestDimension.c )
  6. pt_examples ( TestDimension.c )
  7. pt_examples ( TestDimension.c )
  8. pt_examples ( TestDimension.c )
  9. pt_examples ( TestDimension.c )
  10. pt_examples ( TestDimension.c )
  11. pt_examples ( TestMenu.c )
  12. pt_examples ( TestSimpRep.c )
  13. pt_examples ( TestSimpRep.c )
  14. pt_examples ( TestSimpRep.c )
  15. pt_examples ( TestSimpRep.c )
  16. pt_userguide ( UgSolidMenu.c )