[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
PartRestoreScreen WinTTT
Purpose To restore a portion of a saved screen to the display.
Declaration PartRestoreScreen(Page,X1,Y1,X2,Y2,X,Y: integer);
Page is the number of the saved screen
X1 is the top left X coord of saved screen (1..80)
Y1 is the top left Y coord of saved screen (1..25)
X2 is the lower X coord of saved screen (1..80)
Y2 is the lower Y coord of saved screen (1..25)
X is the top left X coord of the target location (1..80)
Y is the top left Y coord of the target location (1..25)
Uses CRT, FastTTT, DOS, WinTTT.
Remarks The procedure is used to restore part of a screen that was
previously saved with SaveScreen. The first four coord.
parameters indicate which part of the saved screen should be
restored, and the last pair of coords indicate the position
on the screen where the top left corner of the restored data
is located.
Example
USES CRT, FASTTTT, DOS, WINTTT;
BEGIN
SAVESCREEN(1);
.....
.. {SCREEN MODIFYING PROCEDURES}
.....
PARTRESTORESCREEN(1,1,1,80,12,1,13);
DISPOSESCREEN(1);
END.
In this example, the screen is saved (let's assume there was something
meaningful on the screen at that point), then some other procedures
modify the screen display. The top half of the saved screen is then
restored to the lower half of the screen display.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson