home *** CD-ROM | disk | FTP | other *** search
- /* $VER: buttong.zrx 1.0 (10.09.93)
- * Test script for the Great and Mighty ZedREXX
- * Copyright (c) 1993-1994 Reality Check, Inc.
- *
- */
-
- OPTIONS RESULTS
- SIGNAL ON ERROR
- SIGNAL ON HALT
-
- /* Application Data */
- 'zInterface zButtonG'
- 'zImage Magnify Width=11 Height=9 Depth=1 Data="3E006300C180C180C18063003EC000E00060"'
- 'zImage Folder Width=11 Height=9 Depth=1 Data="7800840087E0F8208020802080208020FFE0"'
- 'zImage Clients File="ZedREXX:images/clients.brush"'
- 'zImage Projects File="ZedREXX:images/projects.brush"'
- 'zImage Time File="ZedREXX:images/time.brush"'
- 'zImage Expenses File="ZedREXX:images/expenses.brush"'
- 'zImage Invoicing File="ZedREXX:images/invoicing.brush"'
- 'zImage ZrxIcon File="ZedREXX:icons/zedrexx.info"'
-
- 'zWindow Main Label "Button Example" Open Centered Vertical CloseEvent ChildMaxWidth'
- 'zMenu Project'
- 'zObject Button Quit Label "&Quit" SelectEvent'
- 'zEndMenu'
- 'zGroup Horizontal Justification Left ChildMaxHeight'
- 'zObject ButtonG IB1 Image=ZrxIcon'
- 'zObject TextDisplay IBT Value="ZedREXX logo" NoBorder'
- 'zEndGroup'
- 'zObject Line'
- 'zGroup Horizontal ChildMaxHeight NoMargX'
- 'zObject TextEntry TF1 MaxChars 255 NumColumns 30 Fill'
- 'zObject ButtonG TF1G Glyph=Magnify UpEvent'
- 'zEndGroup'
- 'zGroup Horizontal ChildMaxHeight NoMargX'
- 'zObject TextEntry TF2 MaxChars 255 NumColumns 30 Fill'
- 'zObject ButtonG TF2G Glyph=Folder UpEvent'
- 'zEndGroup'
- 'zObject Line'
- 'zGroup Horizontal Justification Left NoMargX'
- 'zObject ButtonG B1 Image=Clients'
- 'zObject ButtonG B2 Image=Projects'
- 'zObject ButtonG B3 Image=Time'
- 'zObject ButtonG B4 Image=Expenses'
- 'zObject ButtonG B5 Image=Invoicing'
- 'zEndGroup'
- 'zObject Line'
- 'zGroup Horizontal Justification Center'
- 'zObject Button OK Label "&OK" SelectEvent'
- 'zEndGroup'
- 'zEndWindow'
- 'zEndInterface'
-
- /* Turn everything on */
- 'zDoMethod zButtonG Activate'
-
- /* Enter the event loop */
- DO FOREVER
-
- /* Wait for something to happen */
- 'zWaitForEvent stem.'
-
- /* Do something with the event */
- INTERPRET "zRC="RESULT"()"
- END
-
- Halt:
- OK_Select:
- Quit_Select:
- zButtonG_Quit:
- EXIT
-
- Error:
- IF RC=20 THEN DO
- SAY "Must be run within zrx"
- EXIT
- END
- SAY "Error" RC "at line" SIGL " (errnum="zErrNum")"
- EXIT
-
- OK_Select:
- Main_Close:
- EXIT
-
- TF1G_Change:
- TF2G_Change:
- Return 0
-