return to first page linux journal archive
keywordscontents

Listing 1. Building a Form

# cat /usr/local/example/hw.rcp
#include "resid.h"
FORM ID MainFormId AT (2 2 156 156)
USABLE
FRAME
MODAL
HELPID MainFormHelpId
MENUID MainFormMenuId
BEGIN 
    TITLE "Hello-World Pilot III"
    FORMBITMAP AT (10 20) BITMAP 10
END
MENU ID MainFormMenuId
BEGIN
    PULLDOWN "Options"
    BEGIN
	MENUITEM "About..." ID AboutId "a"
    END
END
STRING ID MainFormHelpId  "Hello world"
ALERT ID alertID_about
INFORMATION
BEGIN
	TITLE "About Hello world"
	MESSAGE	" Hello To the World "
	BUTTONS "Done"
END 
STRING ID main_form_help_string \
        "This is an example for the palm pilot\n"\
        "Application gcc programming"