|
Customizing Menus
To Customize Menus for a Custom Class
2. Select the Customization Center view.
3. Click Lock for Customization.Re-inherit Menus for the Custom Class
6.
7.
8. To refresh the menus, check in the class and then check it out again (select Class and then Allow Editing twice).Edit the Main Menus
9. An item called Menu bar is at the top of the menu hierarchy. The menu buttons are children of this item, and the menu items are children of the menu buttons.Tip: You can also add peer elements using the Add Peer button, or rearrange the menu elements in the hierarchy using the arrow buttons.The Menu Element dialog appears. This example is for editing a menu element:When you are adding a menu element, Method is selected by default.
• Menu button: adds a label to the menu. Select this option to add a label under which you want to add child menu items.
• Separator: adds a separator line to the menu
• Method: adds a menu item that invokes a method. When you select this option, you can select from any method available in the system.Note: When you are adding a new menu element, you can select a join path to a related class. The Method to invoke list displays the methods for that class.
• Dialog: adds a menu item that displays a dialog. When you select this option, you can select any dialog that belongs to the class that owns the configuration. For example, if the configuration is on a site view, you can select any dialog owned by the Site class.
To include a mnemonic for this menu label, type an ampersand (&) in front of the character that you want to use. At run-time, the designated character will be underlined. Pressing Alt and the underlined letter selects the menu item.You can also define a shortcut to the menu item (for example, Ctrl + S to save an object). To do this, type “\t” after the menu element label followed immediately by the shortcut key sequence. This left-aligns all the shortcuts on a menu at the first tab position after the longest menu item. Do not use spaces for alignment because they may not display properly.Match key names with those commonly inscribed on the keycap. For example, for Ctrl and Shift key combinations type “Ctrl+” and “Shift+”. For example, the menu label for a Properties view might look like this:Properties Ctrl+P.
12. Click OK to save the menu element.Edit the Pop-up Menu
15. Click in the Pop-up Menu section.
16.Test the Menus