Home Hobby Work Code WWW
wmail Palm route newpic zeef Euro
Tutorial RSI Clock Convert
prevtocnextindex

Resources

Images

The next thing I wanted to do was change the default icon to a specific one. If you want to do that you have to create your icon. The prefered sizes for a bitmap are 22x22, 32x22 or 32x22 pixels. I've created a 32x22 bitmap of a Globe as show below.
Bitmap of the world
Bitmap of the world

If you show your applications in a list, a smaller icon will be displayed. This icond needs a 15x9 bitmap.

Small bitmap of the world
Small bitmap of the world

Recource file

Next create a resouce file:
helloworld.rcp
// The version number of the application
VERSION "1.0"
// The filename of the icon we want to use
ICON "../resources/icon.bmp"
// The filename of a small icon
SMALLICON "../resources/icon_s.bmp"
Exept for the name of the icons. I've also included a version nuber of this application.

Build

With PilRC to compile the resources: pilrc helloworld.rcp
And build the application: build-prc helloworld.prc "Hello world" HeWo *.bin *.helloworld.grc

Run

You can load the application as usual. Because we have used the same creatorID as in our previous application, this application will overwrite the last. When you go to the application screen, you can see the icon:
The application screen with the Hello world icon
The application screen with the Hello world icon
Changing to list mode will show the small icon:
The application screen in list mode shows the small icon
The application screen in list mode shows the small icon
And the version can also be seen:

prevtocnextindex
Tutorial RSI Clock Convert
wmail Palm route newpic zeef Euro
Home Hobby Work Code WWW

Toni Cornelissen
13 September 2004
toni@dse.nl
Lid van de Technetium groep
Daily horoscope NetStat W3C Validator