API Documentation > Menu manager menus > Object ProMenubutton > Function ProMenubuttonVisibilitySet
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>
ProMenubuttonVisibilitySet
(
ProMenuName menuname
/* (In)
The name of the menu
*/
/* (In)
The name of the menu button
*/
ProBoolean visible
/* (In)
Specifies whether to make the menu item visible or invisible
*/
)
Returns
The function successfully set the visibility.
There was a general error and the function failed.
See Also
Sample Code References
Was this helpful?