home *** CD-ROM | disk | FTP | other *** search
- '*********************** MENUTEST.MST ************************************
- 'Demonstrates: Use of FastTest menu procedures.
- '
- 'Required Files: FASTTEST.INC, WRITE.EXE
- '
- 'Uses: FASTTEST
- '
- 'Complexity Level: INTRODUCTORY
- '
- 'Notes:
- '
- '*************************************************************************
-
- '$INCLUDE 'FASTTEST.INC'
-
- '*** Set up some logging options
-
- XSetLogOptions LOG_SCREEN
- Viewport Clear
- XLogBanner "Starting WRITE.EXE Test"
-
- XStartApp "write.exe",""
-
- '*** Log a failure if File, File/Open, File/Save,
- '*** or File/Save As do not exist:
-
- XMenuItemExists "&File", "", ""
- XMenuItemExists "&File", "&Open...", ""
- XMenuItemExists "&File", "&Save", ""
- XMenuItemExists "&File", "Save &As...", ""
-
- '*** Log a failure if Close is on the File menu:
-
- XMenuItemNotExists "&File", "&Close", ""
-
- '*** Log a failure if Edit/Cut or Edit/Copy are not grayed:
-
- XMenuItemGrayed "&Edit", "Cu&t", ""
- XMenuItemGrayed "&Edit", "&Copy",""
-
- '*** Select the Help/About menu item and press Enter:
-
- XSelectMenuItem "&Help", "&About Write...",""
- XEnter ""
-
- '*** Select the Paragraph/Centered menu item and enter some text:
-
- XSelectMenuItem "&Paragraph", "&Centered", ""
- XEnter "Some text to save in the file"
-
- '*** Save the file by selecting File/Save and entering a filename:
-
- XSelectMenuItem "&File", "&Save", ""
- XEnter "test.wri"
-
- '*** Exit the Write program
-
- XSelectMenuItem "&File", "E&xit", ""
-
- END
-
-