home *** CD-ROM | disk | FTP | other *** search
- '*********************** WINTEST.MST *************************************
- 'Demonstrates: Some of FastTest's windowing procedures. It starts the
- ' Windows Paintbrush program and changes the size, location,
- ' maximized status of the window
- '
- 'Required Files: FASTTEST.INC, NOTEPAD.EXE
- '
- 'Uses: FASTTEST
- '
- 'Complexity Level: INTRODUCTORY
- '
- 'Notes:
- '
- '*************************************************************************
-
- '$DEFINE W_WINDOW
- '$INCLUDE 'MSTEST.INC'
- '$INCLUDE 'FASTTEST.INC'
-
- '*** Set up test log and start Paintbrush
-
- XSetLogOptions LOG_SCREEN
- Viewport Clear
- XLogBanner "Starting PBRUSH.EXE Test"
- XStartApp "pbrush.exe", ""
-
- '*** Is the Paintbrush window title correct?
-
- 'XCaptionExists "Paintbrush - (Untitled)"
-
- '*** Move the window to the upper-left corner of the screen
-
- XMoveActiveWindow 0, 0, TRUE
-
- '*** Stretch lower-right portion of window
- '*** to lower-right corner
-
- XSizeActiveWindow 640, 480, TRUE
-
- XMinWindow '*** Minimize the window
- XWindowMinimized '*** Is the window minimized?
- XMaxWindow '*** Maximize the window
- XWindowMaximized '*** Is the window maximized?
-
- XSizeActiveWindow 200, 200, TRUE '*** Make the window smaller
-
- XAlt "f" '*** Exit the program
- XEnter "x"
-
- END
-
-