The previous chapters described how to work with resource types for which a default editor (such as a Form Editor or Alert Editor) is provided. This chapter describes how to work with resources for which no default editor is provided.
Overview of Other Resource Types and How to Work with Them
To work with resource types for which no default editor is provided you can use either the XML Editor or the Hex Viewer.
- The XML Editor shows the XML resource description for the resource. This editor is to be used for resources for which no custom resource editor is provided. For information on how to select this editor, see "Edit Resource".
- The Hex Viewer shows the binary form of the resource. This editor is to be used for resources for which no custom resource editor is provided. For information on how to select this editor, see "Edit Resource".
Using the XML Editor
To work with resources in the XML Editor, 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 resource, or edit an existing resource.
- To create a new resource, see "Creating a New Resource".
- To edit an existing resource, see "Modifying an Existing Resource".
Creating a New Resource
- In the Files pane, select the resource description (XRD) file to which you want to add the sound resource.
- In the main menu bar, select Edit > New Resource. The New Resource dialog box appears.
- In the New Resource dialog box, select the resource type you want to create, and then click the New button.
- The name and number of the new resource appear in the Files pane, and the resource is displayed in an XML Editor. For information on how to edit the resource, see "Modifying an Existing Resource".
Modifying an Existing Resource
You can edit some resource items in the XML Editor window, and some resource items in the Properties pane.
- In the Files pane, select the resource you want to modify. When you select a resource, the resource's properties are displayed in the Properties pane.
- In the Files pane, double-click the resource to display it in an XML Editor window. The XML Editor displays the XML for the resource. You can edit the XML in the XML Editor. For example, for a WAV sound the XML Editor might display:
<WAVE_SOUND_RESOURCE RESOURCE_ID="1000"> <WAVE_FILE> "WAVE_1000.wav" </WAVE_FILE> </WAVE_SOUND_RESOURCE>
Working with the Hex Viewer
To view a resource in the Hex Viewer:
- In the Files pane, select the resource.
- In the Resource Editor main toolbar, select Edit > Edit Resource > Hex Viewer. The resource is displayed in binary format in the Hex Viewer window.