home *** CD-ROM | disk | FTP | other *** search
- Image b1 e1.pic
- Image b2 e2.pic
-
- BeginGadgetList
- AddGadgetImageButton2 300 30 b1 b2 50
- GadgetOpt . "" - ! gadget flags . means use defaults
- + "TOGGLESELECT" - ! activation flags + means add to defaults
- 0 ! mutual exclude
- AddGadgetinteger 30 100 - ! x,y
- 20 100 - ! screen, buff sizes
- 0 0 - ! init value
- 200 ! gadget id
- AddGadgetProp 160 120 20 60 - ! left,top,wid,height
- 0 1 - ! horz,vert enables
- 5000 5000 - ! pot values to start with
- 10000 10000 - ! body values
- -1 ! gadget id -1 means last+1
- AddGadgetString 30 60 - ! x,y
- 25 100 - ! size on screen, size of buffer
- "Enter a string here" "spare" - ! initial string, spare arg
- -1 ! gadid use prior value + 1
- EndGadgetList mygadgets
-
-
- CreateScreen sname 704 - ! width
- 420 - ! height
- 4 - ! depth
- "scr1" b1 - ! This is the title and the color map to use
- 6 4 ! detail block pens
-
- CreateWindow -
- wname - ! window name
- sname - ! screen name
- 50 - ! origin
- 50 -
- 500 - ! the width
- 280 - ! the height
- "closewindow menupick gadgetup" - ! idcmp flags
- "WINDOWCLOSE activate windowdrag windowsizing" - ! window flags
- mygadgets - ! gadgets
- "" ! window title
- ! MenuItemHeight 10
- ! NextItemColumnOffset 95
-
- BeginMenuStrip
- addmenu " First menu "
- addmenuitem "menu item one"
- menuitemOpt = - ! = means set the flags to the next arg
- "commseq itemtext itemenabled highbox" - ! flags
- 0 - ! mutual exclude 0xxx = hex, xxx = decimal
- "y" - ! the char (requires commseq flag)
- 1 2 jam1
-
- addmenuitems "menu item two" 0 "menu item three" 0 !each uses prior attributes 0=no mutual excludes
- EndMenuStrip mstrip wname
-
- textat wname 20 180 "Try gadgets and menus, then exit with close" 1 2 jam1
- palette wname 20 220 10 10
-
- rexx wname xxxport !quits on close hit or CLOSE sent to port foobarport
- wbenchtoback
-