O'Reilly logo

REALBasic: TDG, 2nd Edition by Matt Neuburg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Editing Menus

As already stated, the physical information about your project’s menus and menu items is contained in its menubar. To edit the menubar, double-click the Menus listing in the Project Window; the Menu Editor appears, showing a simulation of the menus as they will appear when the application runs. In the Menu Editor, click on a menu text to reveal its menu items. (See Figure 6-1.)

The Menu Editor

Figure 6-1. The Menu Editor

In the Menu Editor, when any menu or menu item is selected, its properties are listed in the Properties Window. You can type to create or replace the text of a selected menu or menu item; hit Return or Enter to “set” the new text. If you’re not in the middle of typing its text, you can remove a selected menu or menu item by hitting Delete. Two dotted outlines show where to create a new menu item or menu: just select an outline and type its text. (A new dotted outline will appear after you hit Return or Enter.) Menus and menu items can be rearranged by dragging. Arrow keys navigate among menus and menu items.

A menu item’s name, as listed in the Properties Window, is its global name. Your code will use a menu item’s global name to perform such operations as enabling it, changing its text, giving it a checkmark, and so forth. When you create a menu item and provide it with a text, REALbasic supplies a suggested global name based on the text of the containing menu and the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required