Documentation  |   Table of Contents   |  < Previous   |  Next >   |  Index

6    Working with Alert Dialogs

Palm OS® Resource Editor Guide

Palm OS® Developer Suite

This chapter introduces Alert dialog resources, used to communicate important messages to users.

Working with Alerts Overview ^TOP^

To work with Alert dialogs, 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 alert dialog, or edit an existing alert dialog.

Creating a New Alert Dialog ^TOP^

To create a new alert dialog:

  1. In the Files pane, select the resource description (XRD) file to which you want to add the alert dialog.
  2. In the main menu bar, select Edit > New Resource. The New Resource dialog box appears.
  3. In the New Resource dialog box, select Alert and then click the New button.
  4. The name and number of the new alert dialog appear in the Files pane, and the alert dialog is displayed in the Alert Editor. For information on how to edit the alert, see "Modifying an Existing Alert Dialog".

Modifying an Existing Alert Dialog ^TOP^

To modify an alert dialog, edit the alert dialog's properties in the Properties pane. To display an alert dialog in the Properties pane:

  1. In the Files pane, select the alert resource you want to display. When you select an alert resource, the alert dialog's properties are displayed in the Properties pane.
  2. In the Files pane, double-click the menu resource to display it in the Alert Editor. The Alert Editor appears.

Adding a Button to an Alert Dialog ^TOP^

To add a button to an alert dialog, use the Edit > New Alert Button menu item.

To change the text of a button:

  1. Select the alert resource in the Files pane
  2. Click on the Alert Editor.
  3. Double-click the button text in the Properties pane.

Deleting a Button from an Alert Dialog ^TOP^

To delete a button, select the button in the Alert Editor and select Edit > Clear.


NOTE: An Alert dialog is required to have a least one button; you cannot delete all of the buttons from an Alert dialog.