Demonstrations


The following emulator screen dumps show the interface generated by the next application Hello_a, which also prints the message “Hello, world!”, but with few more features such as button.
  1. Go to b screen after clicking on Hello_a icon.

    Note that the default icon is replaced by the image .
  2. Go to a screen after clicking on OK button.

    Go to c screen after clicking on i help.
  3. Go to b screen after clicking on Done button.
Before the Palm OS Resource Editor, you have to manually create the following C header file Hello_a.h and Palm OS resource file Hello_a.rcp for the above interface:

 Hello_a.h 

#define  Form1   1000
#define  Ok      9999
#define  Alert1  1000
#define  Help1   1000


 Hello_a.rcp 

#include "Hello_a.h"

FORM  ID Form1 AT (2 2 156 156)
USABLE
MODAL
HELPID  Help1
BEGIN
  TITLE   "Hello World"
  FORMBITMAP  AT (8 20) BITMAP 2005
  LABEL   "Hello," ID 2000 AT (CENTER PREVBOTTOM+1) FONT 1
  LABEL   "Mobile World!" ID 2001 AT (CENTER PREVBOTTOM+1) FONT 2
  LABEL   "" ID 2002 AT (CENTER PREVBOTTOM+1) FONT 2
  LABEL   "" ID 2003 AT (CENTER PREVBOTTOM+1) FONT 2
  LABEL   "#:-)" ID 2004 AT (CENTER PREVBOTTOM+1) FONT 0
  BUTTON  "Ok" ID Ok AT (CENTER 140 AUTO AUTO)
END

STRING  Help1 "This is the mobile version of the programming " \
    "classics "\"Hello World\".\n" 

ICON       "hello.bmp"
BITMAP     ID 2005 "hello.bmp" 
VERSION    1 "1.0.0"
LAUNCHERCATEGORY ID 1000 "Tutorial"