[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
TempMessage WinTTT
Purpose To display a message anywhere on the screen, wait for a
keypress (or mouse activity), and then restore the original
screen contents.
Declaration TempMessage(X,Y,F,B: integer; St: string);
X is the X coord of the first character (1..80)
Y is the Y coordinate or display line (1..25)
F is the foreground color (0..15)
B is the background color (0..15)
St is the string or message text
Uses Crt, FastTTT, DOS, WinTTT.
Remarks The procedure temporarily stores the line of text together
with its color attributes. It displays the temporary
message, and after a key is pressed (any key, or any mouse
activity), the original text and color attributes are
restored to the screen.
Note that the procedure does not return which key was
pressed.
This is one of the most popular procedures in the Toolkit
and is most useful when the screen is very busy and you want
to display an error or warning message without modifying the
display.
Example
USES CRT, FASTTTT, DOS, WINTTT;
BEGIN
TEMPMESSAGE(1,1,YELLOW,RED,'YOU CANNOT REFORMAT THE
NETWORK!');
END.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson