Slide 8.1: Form demonstrations
  Slide 8.3: Forms.c
  Home


Form Demonstration (Cont.)


Using Palm OS Resource Editor, you can visually create the previous user interface as follows:
  1. The application icon with an ID 1000 shown in the Files pane


  2. A bitmap image with an ID 1000 shown in the Files pane


  3. A string with an ID 1000 for Help


  4. A form with an ID 1000


  5. The button in the Form 1000


    • Comment: Name of the form object. Must be a valid C name—for instance, it cannot have spaces.

    • ID: Integer ID assigned by Resource Editor.

    • Usable: Uncheck this box if you don't want the object to appear on the screen initially. Nonusable objects can programmatically be set to usable.

    • Enabled: Uncheck this box if you don't want the user to be able to interact with the object initially. Non-enabled objects can programmatically be set to enabled.

    • Text: Text displayed inside the button.

    • Left Anchor: Controls how the object resizes itself when its text label is changed. If checked, the left bound of the object is fixed; if unchecked, the right bound is fixed.

    • Frame: The BUTTON_FRAME element is used to specify the frame used by the form object. The element may be specified as one of the following enum values: NO_BUTTON_FRAME, STANDARD_BUTTON_FRAME, BOLD_BUTTON_FRAME, and RECTANGLE_BUTTON_FRAME.

  6. A form with an ID 1001


  7. The push button in the Form 1001


    A push button object creates a push button. A group of push buttons represents a set of options where only one option can be selected at a time. You typically create several push buttons aligned horizontally or vertically.

    • Group ID: Nonzero value between 1 and 65535 to identify the group. If 0, the push button is not assigned to a group.

  8. The checkbox in the Form 1001


    The checkbox object creates a check box. Check boxes often appear in a group. If so, the group should be non-exclusive (so that the user can enable multiple check boxes) and should be aligned vertically or horizontally. If you want to make sure that only one of a series of options is selected, use push buttons or a list instead of check boxes.

    • Selected: Initial selection state of the check box. If this box is checked (the default), the check box is initially checked.

  9. A form with an ID 1002


  10. The list in the Form 1002


    • Usable: If creating a pop-up list, uncheck this box.

    • Num. Vis. Items: Number of items the list displays.
      • 13 items for a full screen pop-up list
      • 11 items for a full screen stand-alone list (modeless form)
      • 10 items for a full screen stand-alone list (modal form)
      • 0 for the Categories pop-up list (its size is determined at runtime)
      Set to the total number of items in your list if less than these numbers.

    • Num. Items: Number of items in list.

  11. The repeating button in the Form 1002


    The repeating button object creates a repeating button. Repeating buttons can look identical to command buttons or not. The difference between the two is that the repeating button sends events repeatedly while the user holds the pen down on the button. Command buttons wait until the user releases the pen and then send a single event. The most common use of repeating buttons is to draw the scroll buttons in the lower-right portion of a form. They are also often used as increment/decrement arrows.

    • Text: Specifies the text that appears inside the repeating button. Use “\x01” to specify the scroll up button. Use “\x02” to specify the scroll down button.

    • Left Anchor: Controls how the object resizes itself.
      • TRUE—the object's left bound is fixed.
      • FALSE—the object's right bound is fixed.


  12. The field in the Form 1002


    Use the field object to create an editable text field that is either a single-line long or multiple lines long. You can also use the field resource to create noneditable text that is displayed on the form. It is easier to use noneditable text fields instead of labels if the text of the label changes dynamically.

    • Editable: If this box is checked, the field is editable. Noneditable fields don't accept user input but can be changed programmatically.

    • Underlined: Check this box for editable fields. Uncheck for noneditable fields.

    • Single Line: Check this box for single-line fields so the field doesn't scroll horizontally and doesn't accept Return or Tab characters.

    • Max Chars: Maximum number of bytes that the user can enter into an editable field.

    • Justification: Left-justify editable single-line fields. Right-justify single-line numeric fields or noneditable fields used as labels. Not applicable to multi-line fields.

    • Numeric: If checked, only the characters 0 through 9 and associated separators are allowed to be entered in the field. The associated separators are the thousands separator and the decimal character. Note that numeric fields do not allow plus signs.

    • Max. Vis. Lines: Maximum number of lines visible for a multi-line entry field.


The resource editor will automatically generate the following resource description file ResourceDescription1.xrd (.xrd or .txt) from the above editing by selecting File > Save As ...:

 ResourceDescription1.xrd 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<PALMOS_RESOURCE_FILE>

 <ALERT_RESOURCE RESOURCE_ID="1000">
  <ALERT_TYPE> INFORMATION_ALERT </ALERT_TYPE>
  <HELP_ID> 1000 </HELP_ID>
  <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
  <TITLE> "About Forms" </TITLE>
  <MESSAGE> "Nothing special  :)" </MESSAGE>
  <BUTTONS>
   <TEXT> "OK" </TEXT>
  </BUTTONS>
 </ALERT_RESOURCE>

 <APP_ICON_BITMAP_RESOURCE RESOURCE_ID="1000">
  <BITMAPS>
   <BITMAP>
    <WIDTH> 22 </WIDTH>
    <HEIGHT> 22 </HEIGHT>
    <BIT_DEPTH> 1 </BIT_DEPTH>
    <BITMAP_COMPRESSION> BEST </BITMAP_COMPRESSION>
    <HAS_TRANSPARENCY> FALSE </HAS_TRANSPARENCY>
    <HAS_COLOR_TABLE> FALSE </HAS_COLOR_TABLE>
    <BITMAP_FILE> "AppIcon_Large_X1_1.bmp" </BITMAP_FILE>
   </BITMAP>
  </BITMAPS>
 </APP_ICON_BITMAP_RESOURCE>

 <BITMAP_RESOURCE RESOURCE_ID="1000">
  <BITMAPS>
   <BITMAP>
    <WIDTH> 50 </WIDTH>
    <HEIGHT> 50 </HEIGHT>
    <BIT_DEPTH> 1 </BIT_DEPTH>
    <BITMAP_COMPRESSION> BEST </BITMAP_COMPRESSION>
    <HAS_TRANSPARENCY> FALSE </HAS_TRANSPARENCY>
    <HAS_COLOR_TABLE> FALSE </HAS_COLOR_TABLE>
    <BITMAP_FILE> "Bitmap_1000_X1_1.bmp" </BITMAP_FILE>
   </BITMAP>
  </BITMAPS>
 </BITMAP_RESOURCE>

 <FORM_RESOURCE RESOURCE_ID="1000">
  <FORM_ID> 1000 </FORM_ID>
  <BOUNDS>
   <LEFT> 0 </LEFT>
   <TOP> 0 </TOP>
   <WIDTH> 160 </WIDTH>
   <HEIGHT> 160 </HEIGHT>
  </BOUNDS>
  <USABLE> TRUE </USABLE>
  <MODAL> TRUE </MODAL>
  <SAVE_BEHIND> TRUE </SAVE_BEHIND>
  <HELP_ID> 1000 </HELP_ID>
  <MENU_ID> 0 </MENU_ID>
  <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
  <TITLE_ICON> FALSE </TITLE_ICON>
  <TITLE_BAR_FOCUSABLE> FALSE </TITLE_BAR_FOCUSABLE>
  <FORM_OBJECTS>
   <FORM_TITLE>
    <TEXT> "Forms 1/3 (Modal)" </TEXT>
   </FORM_TITLE>
   <FORM_LABEL>
    <ID> 2000 </ID>
    <LOCATION>
     <X> 47 </X>
     <Y> 18 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "This is a label" </TEXT>
   </FORM_LABEL>
   <FORM_LABEL>
    <ID> 2000 </ID>
    <LOCATION>
     <X> 13 </X>
     <Y> 36 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "Those are individual buttons" </TEXT>
   </FORM_LABEL>
   <FORM_BUTTON>
    <ID> 2001 </ID>
    <BOUNDS>
     <LEFT> 64 </LEFT>
     <TOP> 56 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Frame" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 2002 </ID>
    <BOUNDS>
     <LEFT> 63 </LEFT>
     <TOP> 74 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "NoFrame" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> NO_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 2003 </ID>
    <BOUNDS>
     <LEFT> 55 </LEFT>
     <TOP> 96 </TOP>
     <WIDTH> 50 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "BoldFrame" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> BOLD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 2004 </ID>
    <BOUNDS>
     <LEFT> 39 </LEFT>
     <TOP> 117 </TOP>
     <WIDTH> 80 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> FALSE </ENABLED>
   <TEXT> "Disabled" </TEXT>
   <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
   <FONT_ID> STD_FONT </FONT_ID>
   <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
  </FORM_BUTTON>
  <FORM_BUTTON>
   <ID> 9001 </ID>
   <BOUNDS>
    <LEFT> 27 </LEFT>
    <TOP> 141 </TOP>
    <WIDTH> 36 </WIDTH>
    <HEIGHT> 12 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "Next" </TEXT>
   <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
   <FONT_ID> STD_FONT </FONT_ID>
   <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
  </FORM_BUTTON>
  <FORM_BUTTON>
   <ID> 9002 </ID>
   <BOUNDS>
    <LEFT> 92 </LEFT>
    <TOP> 141 </TOP>
    <WIDTH> 36 </WIDTH>
    <HEIGHT> 12 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "Exit" </TEXT>
   <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
   <FONT_ID> STD_FONT </FONT_ID>
   <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
  </FORM_BUTTON>
 </FORM_OBJECTS>
</FORM_RESOURCE>


<FORM_RESOURCE RESOURCE_ID="1001">
 <FORM_ID> 1001 </FORM_ID>
 <BOUNDS>
  <LEFT> 0 </LEFT>
  <TOP> 0 </TOP>
  <WIDTH> 160 </WIDTH>
  <HEIGHT> 160 </HEIGHT>
 </BOUNDS>
 <USABLE> TRUE </USABLE>
 <MODAL> TRUE </MODAL>
 <SAVE_BEHIND> TRUE </SAVE_BEHIND>
 <HELP_ID> 1000 </HELP_ID>
 <MENU_ID> 0 </MENU_ID>
 <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
 <TITLE_ICON> FALSE </TITLE_ICON>
 <TITLE_BAR_FOCUSABLE> FALSE </TITLE_BAR_FOCUSABLE>
 <FORM_OBJECTS>
  <FORM_TITLE>
   <TEXT> "Forms 2/3 (Modal)" </TEXT>
  </FORM_TITLE>
  <FORM_LABEL>
   <ID> 2010 </ID>
   <LOCATION>
    <X> 10 </X>
    <Y> 18 </Y>
   </LOCATION>
   <USABLE> TRUE </USABLE>
   <FONT_ID> BOLD_FONT </FONT_ID>
   <TEXT> "Those are GROUPED buttons" </TEXT>
  </FORM_LABEL>
  <FORM_PUSH_BUTTON>
   <ID> 2011 </ID>
   <BOUNDS>
    <LEFT> 23 </LEFT>
    <TOP> 36 </TOP>
    <WIDTH> 25 </WIDTH>
    <HEIGHT> 11 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "1st" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 1 </GROUP_ID>
  </FORM_PUSH_BUTTON>
  <FORM_PUSH_BUTTON>
   <ID> 2012 </ID>
   <BOUNDS>
    <LEFT> 72 </LEFT>
    <TOP> 36 </TOP>
    <WIDTH> 25 </WIDTH>
    <HEIGHT> 11 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "2nd" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 1 </GROUP_ID>
  </FORM_PUSH_BUTTON>
  <FORM_PUSH_BUTTON>
   <ID> 2013 </ID>
   <BOUNDS>
    <LEFT> 117 </LEFT>
    <TOP> 36 </TOP>
    <WIDTH> 25 </WIDTH>
    <HEIGHT> 11 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "3rd" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 1 </GROUP_ID>
  </FORM_PUSH_BUTTON>
  <FORM_LABEL>
   <ID> 2020 </ID>
   <LOCATION>
    <X> 22 </X>
    <Y> 55 </Y>
   </LOCATION>
   <USABLE> TRUE </USABLE>
   <FONT_ID> BOLD_FONT </FONT_ID>
   <TEXT> "Now single checkboxes..." </TEXT>
  </FORM_LABEL>
  <FORM_CHECKBOX>
   <ID> 2021 </ID>
   <BOUNDS>
    <LEFT> 17 </LEFT>
    <TOP> 71 </TOP>
    <WIDTH> 63 </WIDTH>
    <HEIGHT> 12 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "Unchecked" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 0 </GROUP_ID>
   <SELECTED> FALSE </SELECTED>
  </FORM_CHECKBOX>
  <FORM_CHECKBOX>
   <ID> 2022 </ID>
   <BOUNDS>
    <LEFT> 90 </LEFT>
    <TOP> 71 </TOP>
    <WIDTH> 53 </WIDTH>
    <HEIGHT> 12 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> TRUE </ENABLED>
   <TEXT> "Checked" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 0 </GROUP_ID>
   <SELECTED> FALSE </SELECTED>
  </FORM_CHECKBOX>
  <FORM_CHECKBOX>
   <ID> 2023 </ID>
   <BOUNDS>
    <LEFT> 52 </LEFT>
    <TOP> 85 </TOP>
    <WIDTH> 53 </WIDTH>
    <HEIGHT> 12 </HEIGHT>
   </BOUNDS>
   <USABLE> TRUE </USABLE>
   <ENABLED> FALSE </ENABLED>
   <TEXT> "Disabled" </TEXT>
   <FONT_ID> STD_FONT </FONT_ID>
   <GROUP_ID> 0 </GROUP_ID>
   <SELECTED> FALSE </SELECTED>
   </FORM_CHECKBOX>
   <FORM_LABEL>
    <ID> 2030 </ID>
    <LOCATION>
     <X> 29 </X>
     <Y> 105 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "... And Grouped ones" </TEXT>
   </FORM_LABEL>
   <FORM_CHECKBOX>
    <ID> 2031 </ID>
    <BOUNDS>
     <LEFT> 21 </LEFT>
     <TOP> 122 </TOP>
     <WIDTH> 32 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "1st" </TEXT>
    <FONT_ID> STD_FONT </FONT_ID>
    <GROUP_ID> 1 </GROUP_ID>
    <SELECTED> FALSE </SELECTED>
   </FORM_CHECKBOX>
   <FORM_CHECKBOX>
    <ID> 2032 </ID>
    <BOUNDS>
     <LEFT> 61 </LEFT>
     <TOP> 122 </TOP>
     <WIDTH> 34 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "2nd" </TEXT>
    <FONT_ID> STD_FONT </FONT_ID>
    <GROUP_ID> 1 </GROUP_ID>
    <SELECTED> FALSE </SELECTED>
   </FORM_CHECKBOX>
   <FORM_CHECKBOX>
    <ID> 2033 </ID>
    <BOUNDS>
     <LEFT> 105 </LEFT>
     <TOP> 122 </TOP>
     <WIDTH> 33 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "3rd" </TEXT>
    <FONT_ID> STD_FONT </FONT_ID>
    <GROUP_ID> 1 </GROUP_ID>
    <SELECTED> FALSE </SELECTED>
   </FORM_CHECKBOX>
   <FORM_BUTTON>
    <ID> 9000 </ID>
    <BOUNDS>
     <LEFT> 13 </LEFT>
     <TOP> 143 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Prev" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 9001 </ID>
    <BOUNDS>
     <LEFT> 61 </LEFT>
     <TOP> 143 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Next" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 9002 </ID>
    <BOUNDS>
     <LEFT> 109 </LEFT>
     <TOP> 143 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Exit" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
  </FORM_OBJECTS>
 </FORM_RESOURCE>

 <FORM_RESOURCE RESOURCE_ID="1002">
  <FORM_ID> 1002 </FORM_ID>
  <BOUNDS>
   <LEFT> 0 </LEFT>
   <TOP> 0 </TOP>
   <WIDTH> 160 </WIDTH>
   <HEIGHT> 160 </HEIGHT>
  </BOUNDS>
  <USABLE> TRUE </USABLE>
  <MODAL> FALSE </MODAL>
  <SAVE_BEHIND> TRUE </SAVE_BEHIND>
  <HELP_ID> 1000 </HELP_ID>
  <MENU_ID> 0 </MENU_ID>
  <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
  <TITLE_ICON> FALSE </TITLE_ICON>
  <TITLE_BAR_FOCUSABLE> FALSE </TITLE_BAR_FOCUSABLE>
  <FORM_OBJECTS>
   <FORM_TITLE>
    <TEXT> "Forms 3/3 (Non Modal)" </TEXT>
   </FORM_TITLE>
   <FORM_LABEL>
    <ID> 1000 </ID>
    <LOCATION>
     <X> 64 </X>
     <Y> 20 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "List" </TEXT>
   </FORM_LABEL>
   <FORM_POPUP>
    <CONTROL_ID> 1001 </CONTROL_ID>
    <LIST_ID> 1001 </LIST_ID>
   </FORM_POPUP>
   <FORM_LIST>
    <ID> 2042 </ID>
    <BOUNDS>
     <LEFT> 50 </LEFT>
     <TOP> 35 </TOP>
     <WIDTH> 50 </WIDTH>
     <HEIGHT> 22 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <FONT_ID> STD_FONT </FONT_ID>
    <NUM_VIS_ITEMS> 2 </NUM_VIS_ITEMS>
    <LIST_ITEMS>
     <TEXT> "English" </TEXT>
     <TEXT> "Spanish" </TEXT>
     <TEXT> "German" </TEXT>
     <TEXT> "French" </TEXT>
     <TEXT> "Japanese" </TEXT>
    </LIST_ITEMS>
   </FORM_LIST>
   <FORM_LABEL>
    <ID> 1001 </ID>
    <LOCATION>
     <X> 20 </X>
     <Y> 65 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "Repeat buttons & field" </TEXT>
   </FORM_LABEL>
   <FORM_REPEATING_BUTTON COMMENT="Scroll Up">
    <ID> 2044 </ID>
    <BOUNDS>
     <LEFT> 28 </LEFT>
     <TOP> 83 </TOP>
     <WIDTH> 18 </WIDTH>
     <HEIGHT> 8 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "\x02" </TEXT>
    <LEFT_ANCHOR> TRUE </LEFT_ANCHOR>
    <FONT_ID> SYMBOL_7_FONT </FONT_ID>
    <BUTTON_FRAME> NO_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_REPEATING_BUTTON>
   <FORM_FIELD>
    <ID> 2045 </ID>
    <BOUNDS>
     <LEFT> 52 </LEFT>
     <TOP> 81 </TOP>
     <WIDTH> 50 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <EDITABLE> TRUE </EDITABLE>
    <SINGLE_LINE> FALSE </SINGLE_LINE>
    <DYNAMIC_SIZE> FALSE </DYNAMIC_SIZE>
    <UNDERLINE> COLOR_UNDERLINE </UNDERLINE>
    <JUSTIFICATION> LEFT_ALIGN </JUSTIFICATION>
    <AUTO_SHIFT> FALSE </AUTO_SHIFT>
    <HAS_SCROLLBAR> FALSE </HAS_SCROLLBAR>
    <NUMERIC> TRUE </NUMERIC>
    <MAX_CHARS> 4 </MAX_CHARS>
    <FONT_ID> STD_FONT </FONT_ID>
    <MAX_VISIBLE_LINES> 0 </MAX_VISIBLE_LINES>
   </FORM_FIELD>
   <FORM_REPEATING_BUTTON COMMENT="Scroll Up">
    <ID> 2046 </ID>
    <BOUNDS>
     <LEFT> 109 </LEFT>
     <TOP> 82 </TOP>
     <WIDTH> 18 </WIDTH>
     <HEIGHT> 8 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "\x01" </TEXT>
    <LEFT_ANCHOR> TRUE </LEFT_ANCHOR>
    <FONT_ID> SYMBOL_7_FONT </FONT_ID>
    <BUTTON_FRAME> NO_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_REPEATING_BUTTON>
   <FORM_LABEL>
    <ID> 1002 </ID>
    <LOCATION>
     <X> 38 </X>
     <Y> 113 </Y>
    </LOCATION>
    <USABLE> TRUE </USABLE>
    <FONT_ID> BOLD_FONT </FONT_ID>
    <TEXT> "Bitmap" </TEXT>
   </FORM_LABEL>
   <FORM_BITMAP>
    <USABLE> TRUE </USABLE>
    <LOCATION>
     <X> 82 </X>
     <Y> 101 </Y>
    </LOCATION>
    <BITMAP_ID> 1000 </BITMAP_ID>
   </FORM_BITMAP>
   <FORM_BUTTON>
    <ID> 9000 </ID>
    <BOUNDS>
     <LEFT> 29 </LEFT>
     <TOP> 145 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Prev" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
   <FORM_BUTTON>
    <ID> 9002 </ID>
    <BOUNDS>
     <LEFT> 95 </LEFT>
     <TOP> 145 </TOP>
     <WIDTH> 36 </WIDTH>
     <HEIGHT> 12 </HEIGHT>
    </BOUNDS>
    <USABLE> TRUE </USABLE>
    <ENABLED> TRUE </ENABLED>
    <TEXT> "Exit" </TEXT>
    <LEFT_ANCHOR> FALSE </LEFT_ANCHOR>
    <FONT_ID> STD_FONT </FONT_ID>
    <BUTTON_FRAME> STANDARD_BUTTON_FRAME </BUTTON_FRAME>
   </FORM_BUTTON>
  </FORM_OBJECTS>
 </FORM_RESOURCE>

 <STRING_RESOURCE RESOURCE_ID="1000">
  <TEXT> "This is a demonstration of forms programming for Palm OS." </TEXT>
 </STRING_RESOURCE>

</PALMOS_RESOURCE_FILE>