This chapter introduces Menu Bar resources, used to create menu bars and menus for Palm OS® software applications.
Working with Menus Overview
To work with menus, start Palm OS Resource Editor and open the resource file you want to edit, as described in "Opening a Resource Description File in Resource Editor".
You can either create a new menu or menu bar, or edit an existing menu or menu bar.
- To create a new menu bar, see "Creating a New Menu Bar".
- To create a new menu item, see "Creating a New Menu Item".
- To edit an existing menu bar, see "Modifying an Existing Menu".
Creating a New Menu Bar
- In the Files pane, select the resource description (XRD) file to which you want to add the menu bar.
- In the main menu bar, select Edit > New Resource. The New Resource dialog box appears.
- In the New Resource dialog box, select Menu Bar and then click the New button.
- The name and number of the new menu bar appear in the Files pane, and the menu bar is displayed in the Menu Editor. For information on how to edit the menu bar, see "Using the Menu Editor".
Creating a New Menu Item
To add a new menu item, see the instructions under "Using the Menu Editor".
Modifying an Existing Menu
- In the Files pane, select the menu resource you want to modify. When you select a menu resource, the menu's properties are displayed in the Properties pane.
- In the Files pane, double-click the menu resource to display it in the Menu Editor. The Menu Editor appears. You can edit some menu items in the Menu Editor (see "Using the Menu Editor" for details) and some menu items in the Properties pane.
Using the Menu Editor
The Menu Editor consists of a Windows tree view control that displays the menu bar. The top level of the tree represents the top-level menus, and the second level of the tree represents the menu items in the menu.
When you select a menu or menu item, the properties for the menu or menu item appear in the Properties pane.
In the Menu Editor, you can add and remove menus and menu items by right-clicking them, or you can use the Delete and Insert keys on your keyboard.
To change an item's order in the menu, right-click the item to display a context menu. From the context menu, select the Move Up or Move Down commands. You can also use the up arrow and down arrow keys on your keyboard.
The Cut, Copy, Paste, Clear, and Duplicate menu items are all functional.