home *** CD-ROM | disk | FTP | other *** search
- ; DEBUGTST -- Note: this script has errors in it!
- PROC SomeText() ; define a procedure that displays text
- @4,0 ; locate cursor
- STYLE REVERSE ; change to reverse video
- ? title ; print title of the screen
- STYLE ; return to normal text display
- @7,0 ; relocated cursor
- TEXT
- This is just some miscellaneous text to occupy the
- screen during our debugging test. It should appear
- approximately centered, a couple of lines below the
- title for the screen.
- ENDTEXT
- SLEEP 5000 ; wait 5 seconds
- ENDPROC
-
- WHILE(TRUE) ; just a test loop, always true
- CLEAR ; clear the PAL canvas (screen)
- CLEARALL ; make sure no images are left on workspace
- @4,0 ; locate cursor at line 4, column 0
- SHOWMENU ; build a fake user menu
- "Test" : "This is just a test menu item",
- "Quiz" : "Yet another test menu item",
- "Exam" : "We'll bet you guessed this was another test menu item"
- "Exit" : "Leave the test application, thank goodness"
- TO choice
- IF choice = "Esc"
- THEN QUIT
- ENDIF
- CLEAR
- SWITCH
- CASE choice = "Test":
- SomeText()
- CASE choice = "Quiz":
- SomeText()
- CASE choice = "Exam":
- SomeText()
- CASE choice = "Exit":
- QUIT
- OTHERWISE:
- BEEP BEEP BEEP ; let user know choice was invalid
- ENDSWITCH
- ENDWHILE