Use the Menu editor to add, delete, reorder, rename, and modify menus, submenus, and menu items in your UI Designs.
To invoke the menu editor, simply click the menu component in the non-layout region of the UI Design Editor view. A menu or menu item is editable when you see a text box appear (Figure 1) around the menu or menu item. Begin typing to replace the current menu item text.
Modify an existing label by selecting it and typing over its current text. By default, a menu item is marked with “Type here”.
If the menu item has no assigned event handler, right-click the menu item and choose Handle 'selected' Event to generate an event handler for it. UI Designer generates the stub code to handle the menu item selection. Right-click the menu item again and choose Goto 'selected' Event Code to open the source file where the event handler is located.
If the menu item already has an assigned event handler, you can remove it by right-clicking the menu item and choosing Undo Add event binding. This removes the event handler name from the menu item but does not remove the event handler code.
Use the Properties view to examine the specific settings of any menu or menu item.
Figure 1 - The Menu Editor displaying a menu with a submenu for one item