Adding a Menu Button
 
Functions Introduced:
When you add a new button to an existing menu in user_initialize(), you are modifying the definition of the menu in its memory before that menu has been used by , and therefore before has loaded it from its menu file. You must call the function ProMenuFileRegister() to tell to load its own menu file before you can add your own buttons.
To add a button to a menu, first write a menu file, and then add the following calls to user_initialize():
1. Load the menu into memory, using ProMenuFileRegister().
2. Add the buttons in your menu file to the menu, using ProMenuAuxfileRegister().
3. Define the actions of the new buttons, using ProMenubuttonActionSet().
Was this helpful?