This chapter provides a description of each Palm OS Resource Editor menu item.
Menu Reference Overview
The Palm OS Resource Editor menus include:
File
Use the File menu to manage the resource files in your workspace.
New
Opens a dialog box, shown in Figure 9.1, so that you can create an XML Resource Description or an XML Resource Workspace.

You can open only one workspace at a time. If you try to create a new workspace while another workspace is open, you are asked whether you want to save the existing workspace, if you have made changes to it. The current workspace is closed before the new workspace is created.
Open
Opens a dialog box, shown in Figure 9.2, so that you can select an existing XML resource description (XRD file) or XML resource workspace (XRW file).

You can open only one workspace at a time. If you try to open an existing workspace while another workspace is open, you are asked whether you want to save the open workspace, if you have made changes to it. The open workspace is closed before the new workspace is opened.
Close
Closes all the files associated with the currently open workspace. If you have made changes to the workspace, Resource Editor asks whether you want to save the workspace before closing it.
Save
Saves the currently-selected resource file or workspace.
Save As
Opens a dialog box, shown in Figure 9.3, that allows you to save the currently selected XML resource description (XRD file) or XML resource workspace (XRW file).

Save All
Saves any XML resource description (XRD file) or XML resource workspace (XRW file) that has been changed during this editing session.
Recent Documents
Lists the names of the most recently opened XML resource descriptions (XRD files).
Recent Workspaces
Lists the names of the most recently opened XML resource workspaces (XRW files).
Exit
Closes all the files associated with the currently open workspace, and exits Palm OS Resource Editor.
Edit
Use the Edit menu to access editing functions in the currently open editor window.
Undo
Undoes the most recently performed action.
Cut
Removes the current selection and puts it on the system clipboard.
Copy
Copies the current selection to the system clipboard.
Paste
Pastes the contents of the system clipboard into the active window.
Clear
Clears the current selection in the active window.
Find
Opens a Find dialog box so that you can search for text in the active window.
Find Next
Resumes the prior search without displaying the Find dialog box.
Replace
Opens a Replace dialog box so that you can search for a text string and replace the text string with a new text string.
Select All
Selects all items in the active window.
Duplicate
Makes a copy of the currently selected item, pasting it to a default location.
Validate Resources
Runs a validation check on the currently selected resource or resource description file. This means checking the resource or resource description file for UI and OS compliance. Noncompliant items will be listed in the Tasks pane.
You can either select an item in the Tasks pane to edit or delete the item, or you can double-click on an item to open it in the default editor.
New Resource
Creates a new item of the same resource type as the currently selected resource.
New Resource...
Opens the New Resource dialog box, shown in Figure 9.4, so that you can select the type of the resource you want to create.
Figure 9.4 New Resource dialog box

Edit Resource
Resource Editor includes custom editors for the most common resources. It also includes an XML Editor and a Hex Viewer that you can use to work with resource types for which no custom editor is available. The items in the Edit Resource menu are:
- Default Editor - The custom editor for the currently selected resource, if one exists, or the XML Editor.
- XML Editor - A text editor showing the XML resource description for the currently selected resource.
- Hex Viewer - A text viewer showing the binary form of the currently selected resource.
Form
Use the Form menu to arrange controls in the Form Editor.
Align Lefts
Aligns selected items along the left of the left-most selected item.
Align Centers
Aligns selected items halfway between the left of the left-most selected item and the right of the right-most selected item.
Align Rights
Aligns selected items along the right of the right-most selected item.
Align Tops
Aligns selected items along the top of the topmost selected item.
Align Middles
Aligns selected items halfway between the top of the topmost selected item and the bottom of the bottommost selected item.
Align Bottoms
Aligns selected items along the bottom of the bottommost selected item.
Make Same Widths
Changes the size of the selected items so that they all have the same width as the first item that you selected.
Make Same Height
Changes the size of the selected items so that they all have the same height as the first item that you selected.
Make Same Size
Changes the size of the selected items so that they all have the same size as the first item that you selected.
Center Vertically
Moves the selected items so that the center of the "bounding box" containing all of the items is halfway down the length of the form. The position of the items within the "bounding box" is unchanged.
Center Horizontally
Moves the selected items so that the center of the "bounding box" containing all of the items is halfway down the width of the form. The position of the items within the "bounding box" is unchanged.
Create Navigation Resource
Creates a default form navigation resource for the currently selected form. The resulting XML can be edited in the XML Editor.
Image
Use the Image menu to access tools in the Bitmap Editor
Rectangle Selection Tool
Selects the rectangle selection tool, so that you can draw a rectangle selection area in the editor window.
Color Selection Tool
Selects the color selection tool, so that you can select a single color in the editor window.
Fill Tool
Selects the fill tool, so that you can fill an area defined by a single color with another color.
Magnification Tool
Selects the magnification tool, so that you can zoom in on a rectangular area.
Pencil Tool
Selects the pencil tool, so that you can place single pixels of the currently selected foreground color.
Brush Tool
Selects the brush tool, so that you can draw by sketching with a selected brush.
Air Brush Tool
Selects the air brush tool, so that you can spray random pixels of the foreground color onto the image.
Line Tool
Selects the line tool, so that you can draw a point-to-point line with the currently selected foreground color.
Rectangle Tool
Selects the rectangle tool, so that you can draw a rectangle with the currently selected foreground color. (The interior of the rectangle is left unchanged.)
Outlined Rectangle Tool
Selects the outlined rectangle tool, so that you can draw a rectangle framed with the currently selected foreground color and filled with the currently selected background color.
Filled Rectangle Tool
Selects the filled rectangle tool, so that you can draw a rectangle framed and filled with the currently selected foreground color.
Rounded Rectangle Tool
Selects the rounded rectangle tool, so that you can draw a rounded rectangle with the currently selected foreground color. (The interior of the rectangle is left unchanged.)
Outlined Rounded Rectangle Tool
Selects the outlined rounded rectangle tool, so that you can draw a rounded rectangle framed with the currently selected foreground color and filled with the currently selected background color.
Filled Rounded Rectangle Tool
Selects the filled rounded rectangle tool, so that you can draw a rounded rectangle framed and filled with the currently selected foreground color.
Ellipse Tool
Selects the ellipse tool, so that you can draw an ellipse with the currently selected foreground color. (The interior of the ellipse is left unchanged.)
Outlined Ellipse Tool
Selects the outlined ellipse tool, so that you can draw an ellipse framed with the currently selected foreground color and filled with the currently selected background color.
Filled Ellipse Tool
Selects the filled ellipse tool, so that you can draw an ellipse framed and filled with the currently selected foreground color.
Window
Use the Window menu to change how the editor windows are displayed, to close the editor windows, or to select which editor window is in the foreground.
Arrange Icons
Arranges any minimized editor windows.
Cascade Windows
Arranges any non-minimized and non-maximized editor windows so that they are the same size and overlapping down a diagonal line from upper-left to lower-right.
Tile Horizontally
Arranges any non-minimized and non-maximized editor windows as horizontal tiles, making them all visible at the same time.
Tile Vertically
Arranges any non-minimized and non-maximized editor windows as vertical tiles, making them all visible at the same time.
Close Editor
Closes the currently selected editor window.
Close All Editors
Closes all of the currently open editor windows.
Toolbar
Toggles the display of the toolbar panel.
Color Palette
Toggles the display of the color palette in the Bitmap Editor.
Character Map
Toggles the display of the character map window, shown in Figure 9.5.
Figure 9.5 Character map window

Help
Use the Help menu to get information about Palm OS Resource Editor.
Help Topics
Opens the Palm OS Resource Editor help file.
About Palm OS Resource Editor
Opens the Palm OS Resource Editor About dialog box.