Form Demonstrations


The following emulator screen dumps show the interface generated by the next application Forms, which displays various kinds of user interface contained in forms.
  1. Go to b screen after clicking on Forms icon.

    Note that the default icon is replaced by the image .
  2. This form shows various kinds of buttons.

    Go to c screen after clicking on Next button.

    Go to a screen after clicking on Exit button.
  3. This form shows the grouped push buttons and (grouped) checkboxes.

    Go to b screen after clicking on Prev button.

    Go to d screen after clicking on Next button.

    Go to a screen after clicking on Exit button.
  4. This form shows a list, repeat buttons & a field, and a bitmap image

    Go to c screen after clicking on Prev button.

    Go to a screen after clicking on Exit button.
  5. This screen displays a help message by click on the letter i on the top-right corner of the screens of the above three interface.

    Return to the previous screen after clicking on Done button.
Before the Palm OS Resource Editor, you have to manually create the following C header file Forms.h and Palm OS resource file Forms.rcp for the above interface:

 Forms.h 

#define  FormFirst    1000
#define  Form1        1000
#define  Form2	      1001
#define  Form3	      1002
#define  FormLast     1002

#define  Form3Minus   2044
#define	 Form3Count   2045
#define	 Form3Plus    2046

#define  Prev         9000
#define  Next	      9001
#define  Exit         9002

#define  Bitmap       1000
#define  Help1	      1000


 Forms.rcp 

#include  "Forms.h"

FORM ID Form1 AT (2 2 156 156)
USABLE
MODAL
HELPID Help1
BEGIN
TITLE "Forms 1/4 (Modal)"

LABEL "This is a label" ID 2000 AT (CENTER 20) FONT 1

LABEL "Those are individual buttons" ID 2000 AT (CENTER PREVBOTTOM+10) FONT 1
BUTTON "Frame" ID 2001 AT (CENTER PREVBOTTOM+10 AUTO AUTO) FRAME
BUTTON "NoFrame" ID 2002 AT (CENTER PREVBOTTOM+4 AUTO AUTO) NOFRAME
BUTTON "BoldFrame" ID 2003 AT (CENTER PREVBOTTOM+4 AUTO AUTO) BOLDFRAME
BUTTON "Disabled" ID 2004 AT (CENTER PREVBOTTOM+4 100 AUTO) DISABLED

BUTTON "Next" ID Next AT (CENTER@50 PREVBOTTOM+10 AUTO AUTO)
BUTTON "Exit" ID Exit AT (CENTER@120 PREVTOP AUTO AUTO)
END

FORM ID Form2 AT (2 2 156 156)
USABLE
MODAL
HELPID Help1
BEGIN
TITLE "Forms 2/4 (Modal)"

LABEL "Those are GROUPED buttons" ID 2010 AT (CENTER 20) FONT 1
PUSHBUTTON "1st" ID 2011 AT (CENTER@40 PREVBOTTOM+2 AUTO AUTO) GROUP 1
PUSHBUTTON "2nd" ID 2012 AT (CENTER@80 PREVTOP AUTO AUTO) GROUP 1
PUSHBUTTON "3rd" ID 2013 AT (CENTER@120 PREVTOP AUTO AUTO) GROUP 1

LABEL "Now single checkboxes..." ID 2020 AT (CENTER PREVBOTTOM+8) FONT 1
CHECKBOX "Unchecked" ID 2021 AT (CENTER@50 PREVBOTTOM+2 AUTO AUTO)
CHECKBOX "Checked" ID 2022 AT (CENTER@110 PREVTOP AUTO AUTO) CHECKED
CHECKBOX "Disabled" ID 2023 AT (CENTER PREVBOTTOM+2 AUTO AUTO) DISABLED

LABEL "... And grouped ones" ID 2030 AT (CENTER PREVBOTTOM+8) FONT 1
CHECKBOX "1st" ID 2031 AT (CENTER@40 PREVBOTTOM+2 AUTO AUTO) GROUP 1
CHECKBOX "2nd" ID 2032 AT (CENTER@80 PREVTOP AUTO AUTO) GROUP 1
CHECKBOX "3rd" ID 2033 AT (CENTER@120 PREVTOP AUTO AUTO) GROUP 1

BUTTON "Prev" ID Prev AT (CENTER@40 PREVBOTTOM+10 AUTO AUTO)
BUTTON "Next" ID Next AT (CENTER@80 PREVTOP AUTO AUTO)
BUTTON "Exit" ID Exit AT (CENTER@120 PREVTOP AUTO AUTO)
END

FORM ID Form3 AT (2 2 156 156)
USABLE
HELPID Help1
BEGIN
TITLE "Forms 3/4 (Non Modal)"

LABEL "List" AUTOID AT (CENTER 20) FONT 1
LIST "English" "Spanish" "German" "French" ID 2042 AT
  (CENTER@120 PREVTOP 52 1) VISIBLEITEMS 2

LABEL "Repeat button & field" AUTOID AT (CENTER PREVBOTTOM+8) FONT 1
REPEATBUTTON "-" ID Form3Minus AT (CENTER@50 PREVBOTTOM+2 AUTO AUTO) 
FIELD ID Form3Count AT (CENTER@80 PREVTOP 24 AUTO)
  NONEDITABLE UNDERLINED MAXCHARS 4
REPEATBUTTON "+" ID Form3Plus AT (CENTER@110 PREVTOP AUTO AUTO) 

LABEL "Bitmap" AUTOID AT (CENTER PREVBOTTOM+8) FONT 1
FORMBITMAP AT (80-(32/2) PREVBOTTOM+2) BITMAP Bitmap

BUTTON "Prev" ID Prev AT (CENTER@40 PREVBOTTOM+16 AUTO AUTO)
BUTTON "Next" ID Next AT (CENTER@80 PREVTOP AUTO AUTO)
BUTTON "Exit" ID Exit AT (CENTER@120 PREVTOP AUTO AUTO)
END


BITMAP ID Bitmap "forms.bmp"

STRING Help1 "This is a demonstration of forms programming for PalmOS."

ICON "forms.bmp"

SMALLICON "formssmall.bmp"

VERSION 1 "1.0.0"

LAUNCHERCATEGORY ID 1000 "Tutorial"