Manipulating Menus
Function Introduced:
The function
ProMenubuttonLocationSet() provides the ability to move a
Creo Parametric menu button to a different location on its menu, or to add new menu buttons to a
Creo Parametric menu somewhere other than at the bottom of the menu.
Before you call
ProMenubuttonLocationSet(), you must make sure the menu you are modifying has been fully loaded into memory. Make sure
ProMenuFileRegister() has been called, and, where appropriate,
ProMenuAuxfileRegister().
The first two arguments of the
ProMenubuttonLocationSet() function identify the menu and the button, as in
ProMenubuttonActionSet().
The final argument is a switch that specifies where to move the button. The possible values are as follows:
• 0—The button becomes the first in the menu.
• 1—The button is inserted after the current first button.
• 2—The button is inserted after the current second button.
• –1—The button becomes the last button on the menu.