home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 Mobile
/
Chip_Mobile_2001.iso
/
palm
/
tools
/
blastpad
/
blastpad.EXE
/
blastpad.rcp
< prev
next >
Wrap
Text File
|
2000-11-19
|
12KB
|
309 lines
#include "blastpad.h"
VERSION ID 1 "2.5"
FORM ID Frm4BTN AT (0 0 160 160)
MENUID 1
BEGIN
BUTTON "" ID OS1 AT (0 0 80 80)
BUTTON "" ID OS2 AT (80 0 80 80)
BUTTON "" ID OS3 AT (0 80 80 80)
BUTTON "" ID OS4 AT (80 80 80 80)
LABEL "1" OS1+TEXTOFFSET AT (2 2)
LABEL "2" OS2+TEXTOFFSET AT (82 2)
LABEL "3" OS3+TEXTOFFSET AT (2 82)
LABEL "4" OS4+TEXTOFFSET AT (82 82)
END
FORM ID Frm9BTN AT (0 0 160 160)
MENUID 1
BEGIN
BUTTON "" ID OS1 AT (0 0 53 53)
BUTTON "" ID OS2 AT (PREVLEFT+53 PREVTOP 53 53)
BUTTON "" ID OS3 AT (PREVLEFT+53 PREVTOP 54 53)
BUTTON "" ID OS4 AT (0 PREVTOP+53 53 53)
BUTTON "" ID OS5 AT (PREVLEFT+53 PREVTOP 53 53)
BUTTON "" ID OS6 AT (PREVLEFT+53 PREVTOP 54 53)
BUTTON "" ID OS7 AT (0 PREVTOP+53 53 54)
BUTTON "" ID OS8 AT (PREVLEFT+53 PREVTOP 53 54)
BUTTON "" ID OS9 AT (PREVLEFT+53 PREVTOP 54 54)
LABEL "1" OS1+TEXTOFFSET AT (2 2)
LABEL "2" OS2+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
LABEL "3" OS3+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
LABEL "4" OS4+TEXTOFFSET AT (2 PREVTOP+53)
LABEL "5" OS5+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
LABEL "6" OS6+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
LABEL "7" OS7+TEXTOFFSET AT (2 PREVTOP+53)
LABEL "8" OS8+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
LABEL "9" OS9+TEXTOFFSET AT (PREVLEFT+53 PREVTOP)
END
FORM ID Frm16BTN AT (0 0 160 160)
MENUID 1
BEGIN
BUTTON "" ID OS1 AT (0 0 40 40)
BUTTON "" ID OS2 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS3 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS4 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS5 AT (0 PREVTOP+40 40 40)
BUTTON "" ID OS6 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS7 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS8 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS9 AT (0 PREVTOP+40 40 40)
BUTTON "" ID OS10 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS11 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS12 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS13 AT (0 PREVTOP+40 40 40)
BUTTON "" ID OS14 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS15 AT (PREVLEFT+40 PREVTOP 40 40)
BUTTON "" ID OS16 AT (PREVLEFT+40 PREVTOP 40 40)
LABEL "1" OS1+TEXTOFFSET AT (2 2)
LABEL "2" OS2+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "3" OS3+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "4" OS4+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "5" OS5+TEXTOFFSET AT (2 PREVTOP+40)
LABEL "6" OS6+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "7" OS7+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "8" OS8+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "9" OS9+TEXTOFFSET AT (2 PREVTOP+40)
LABEL "10" OS10+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "11" OS11+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "12" OS12+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "13" OS13+TEXTOFFSET AT (2 PREVTOP+40)
LABEL "14" OS14+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "15" OS15+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
LABEL "16" OS16+TEXTOFFSET AT (PREVLEFT+40 PREVTOP)
END
FORM ID FrmGENPREFS AT (0 0 160 160)
BEGIN
TITLE "Blast Pad Settings"
LABEL "On-screen buttons:" AUTOID AT (10 20)
POPUPTRIGGER "" ID NUMBTNS AT (90 PREVTOP 30 AUTO) LEFTANCHOR
LABEL "Display:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID DISPLAYTYPE AT (90 PREVTOP 70 AUTO) LEFTANCHOR
LABEL "Category:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID CATEGORY AT (90 PREVTOP 70 AUTO) LEFTANCHOR
BUTTON "New..." ID NEWCAT AT (8 PREVTOP+15 AUTO AUTO)
BUTTON "Rename.." ID EDITCAT AT (PREVRIGHT+8 PREVTOP AUTO AUTO)
BUTTON "Delete.." ID DELCAT AT (PREVRIGHT+8 PREVTOP AUTO AUTO)
BUTTON "Modify hardware buttons..." ID MODHWBTNS AT (10 PREVBOTTOM+5 AUTO AUTO)
BUTTON "Modify on-screen buttons..." ID MODOSBTNS AT (10 PREVBOTTOM+5 AUTO AUTO)
CHECKBOX "Select category automatically?" ID MULTISTART AT (5 PREVBOTTOM+5 AUTO AUTO)
CHECKBOX "Display button numbers?" ID BTNNUMDISPLAY AT (5 PREVBOTTOM+3 AUTO AUTO)
BUTTON "Done!" ID OKAYBTN AT (CENTER BOTTOM@158 AUTO AUTO)
LIST "4" "9" "16" ID NUMBTNS+LISTOFFSET AT (105 20 15 AUTO) VISIBLEITEMS 3 NONUSABLE
POPUPLIST ID NUMBTNS NUMBTNS+LISTOFFSET
LIST "Name" "Icon" "Name+Icon" ID DISPLAYTYPE+LISTOFFSET AT (105 PREVTOP+12 55 AUTO) VISIBLEITEMS 3 NONUSABLE
POPUPLIST ID DISPLAYTYPE DISPLAYTYPE+LISTOFFSET
LIST "Default" ID CATEGORY+LISTOFFSET AT (105 PREVTOP+12 55 AUTO) VISIBLEITEMS 5 NONUSABLE
POPUPLIST ID CATEGORY CATEGORY+LISTOFFSET
END
FORM ID FrmHWBUTTONS AT (0 0 160 160)
BEGIN
TITLE "Hardware Buttons"
LABEL "Date Book:" AUTOID AT (10 20)
POPUPTRIGGER "" ID HB1 AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LABEL "Address Book:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID HB2 AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LABEL "To Do List:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID HB3 AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LABEL "Memo Pad:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID HB4 AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LABEL "Up arrow:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID UP AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LABEL "Down arrow:" AUTOID AT (10 PREVTOP+12)
POPUPTRIGGER "" ID DN AT (80 PREVTOP 80 AUTO) LEFTANCHOR
LIST "-none-" ID HB1+LISTOFFSET AT (95 20 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID HB1 HB1+LISTOFFSET
LIST "-none-" ID HB2+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID HB2 HB2+LISTOFFSET
LIST "-none-" ID HB3+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID HB3 HB3+LISTOFFSET
LIST "-none-" ID HB4+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID HB4 HB4+LISTOFFSET
LIST "-none-" ID UP+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID UP UP+LISTOFFSET
LIST "-none-" ID DN+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID DN DN+LISTOFFSET
BUTTON "Good!" ID 100 AT (CENTER BOTTOM@158 AUTO AUTO)
END
FORM ID FrmOSBUTTONS AT (0 0 160 160)
BEGIN
TITLE "On-Screen Buttons"
LABEL "1:" ID OS1+TEXTOFFSET AT (3 15)
POPUPTRIGGER "" ID OS1 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "2:" OS2+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS2 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "3:" OS3+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS3 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "4:" OS4+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS4 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "5:" OS5+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS5 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "6:" OS6+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS6 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "7:" OS7+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS7 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "8:" OS8+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS8 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "9:" OS9+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS9 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "10:" OS10+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS10 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "11:" OS11+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS11 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "12:" OS12+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS12 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "13:" OS13+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS13 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "14:" OS14+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS14 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "15:" OS15+TEXTOFFSET AT (3 PREVTOP+8)
POPUPTRIGGER "" ID OS15 AT (15 PREVTOP 60 AUTO) LEFTANCHOR
LABEL "16:" OS16+TEXTOFFSET AT (83 PREVTOP+8)
POPUPTRIGGER "" ID OS16 AT (95 PREVTOP 60 AUTO) LEFTANCHOR
LIST "-none-" ID OS1+LISTOFFSET AT (15 16 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS1 OS1+LISTOFFSET
LIST "-none-" ID OS2+LISTOFFSET AT (95 24 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS2 OS2+LISTOFFSET
LIST "-none-" ID OS3+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS3 OS3+LISTOFFSET
LIST "-none-" ID OS4+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS4 OS4+LISTOFFSET
LIST "-none-" ID OS5+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS5 OS5+LISTOFFSET
LIST "-none-" ID OS6+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS6 OS6+LISTOFFSET
LIST "-none-" ID OS7+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS7 OS7+LISTOFFSET
LIST "-none-" ID OS8+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS8 OS8+LISTOFFSET
LIST "-none-" ID OS9+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS9 OS9+LISTOFFSET
LIST "-none-" ID OS10+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS10 OS10+LISTOFFSET
LIST "-none-" ID OS11+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS11 OS11+LISTOFFSET
LIST "-none-" ID OS12+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS12 OS12+LISTOFFSET
LIST "-none-" ID OS13+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS13 OS13+LISTOFFSET
LIST "-none-" ID OS14+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS14 OS14+LISTOFFSET
LIST "-none-" ID OS15+LISTOFFSET AT (15 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS15 OS15+LISTOFFSET
LIST "-none-" ID OS16+LISTOFFSET AT (95 28 65 AUTO) VISIBLEITEMS 10 NONUSABLE
POPUPLIST ID OS16 OS16+LISTOFFSET
BUTTON "Okay!" ID OKAYBTN AT (CENTER BOTTOM@158 AUTO AUTO)
END
FORM ID FrmHWCUE AT (2 107 156 51)
MODAL
SAVEBEHIND
BEGIN
BUTTON "-none-" ID HB1 AT (0 13 60 12)
BUTTON "-none-" ID HB2 AT (RIGHT@77 26 60 12)
BUTTON "-none-" ID HB3 AT (78 26 60 12)
BUTTON "-none-" ID HB4 AT (RIGHT@156 13 60 12)
BUTTON "-none-" ID UP AT (CENTER 0 60 12)
BUTTON "-none-" ID DN AT (CENTER 39 60 12)
END
FORM ID FrmNEWCAT AT (2 80 156 50)
MODAL
SAVEBEHIND
BEGIN
TITLE "Add Category"
LABEL "Category name: " AUTOID AT (10 20)
FIELD ID CATNAME AT (PREVRIGHT+5 PREVTOP 145-PREVRIGHT 12) UNDERLINED MAXCHARS 25
BUTTON "Add!" ID OKAYBTN AT (30 BOTTOM@48 AUTO AUTO)
BUTTON "Never mind!" ID CANCELBTN AT (PREVRIGHT+10 PREVTOP AUTO AUTO)
GRAFFITISTATEINDICATOR AT (143 35)
END
FORM ID FrmEDITCAT AT (2 80 156 50)
MODAL
SAVEBEHIND
BEGIN
TITLE "Rename Category"
LABEL "Category name: " AUTOID AT (10 20)
FIELD ID CATNAME AT (PREVRIGHT+5 PREVTOP 145-PREVRIGHT 12) UNDERLINED MAXCHARS 25
BUTTON "Change!" ID OKAYBTN AT (20 BOTTOM@48 AUTO AUTO)
BUTTON "Never mind!" ID CANCELBTN AT (PREVRIGHT+10 PREVTOP AUTO AUTO)
GRAFFITISTATEINDICATOR AT (143 35)
END
MENU ID 1
BEGIN
PULLDOWN "Blast Pad"
BEGIN
MENUITEM "Preferences" ID 0 "P"
MENUITEM "About" ID 1 "A"
END
END
ICON "blastpadlg.bmp"
SMALLICON "blastpadsm.bmp"
ALERT ID AlrABOUT
INFORMATION
BEGIN
TITLE "Blast Pad v2.5"
MESSAGE "Blast Pad v2.5\n" \
"by Daniel Church\n" \
"dchurch@mbhs.edu\n\n" \
"This program is freeware under the GPL; feel free to distribute!"
BUTTONS "Wow!"
END
ALERT ID AlrNODELDEFAULT
ERROR
BEGIN
TITLE "Delete Category"
MESSAGE "You cannot delete the default category."
BUTTONS "Dang!"
END
ALERT ID AlrQUERYDELCAT
CONFIRMATION
BEGIN
TITLE "Delete Category"
MESSAGE "Are you sure you want to delete this category?"
BUTTONS "Yes!" "Oops.. no!"
END
ALERT ID AlrEMPTYCAT
ERROR
BEGIN
TITLE "Add Category"
MESSAGE "You must enter a category name!"
BUTTONS "Whoops!"
END
ALERT ID AlrNOMEM
ERROR
BEGIN
TITLE "Blast Pad"
MESSAGE "You don't have enough free memory!"
BUTTONS "That stinks!"
END
ALERT ID AlrDEBUG
INFORMATION
BEGIN
TITLE "Blast Pad"
MESSAGE "Debug message:\n^1\n^2\n^3"
BUTTONS "Whoa!"
END