Function ProMenubuttonLocationSet
Description
Enables you to determine where in the menu the new button is placed, relative to the existing entries, which are referenced by their sequence number. You can also use this to move existing Creo Parametric menu buttons.
This function affects Menu-Manager (mode-specific) menus only.
The possible location positions are as follows:
• -1 -- After the last item in the menu
• 0 -- Before the first item in the menu
• 1 -- Before the second item
• n -- Before the nth + 1 item
All other items in the menu stay in the same order as before. You can call this function after creating a menu name with
ProMenuFileRegister(), but before it appears on the screen. Otherwise, this function fails.
Synopsis
| ProMenubuttonLocationSet |
| ( /* (In) The name of the menu */ /* (In) The name of the menu button */ int location /* (In) The new location */ ) |
Returns
| The function successfully set the location. |
| There was a general error and the function failed. |
See Also
Sample Code References
User Guide References