home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
t
/
tspa3150.zip
/
TSUNTA.TST
< prev
next >
Wrap
Text File
|
1989-09-24
|
2KB
|
95 lines
(*
This is a test and demonstration program for TSUNTA.TPU
Updated 9-Aug-89, 19-Aug-89
*)
program TsuntaTest;
uses Crt,
TSUNTE,
TSUNTA;
(* First test *)
procedure TEST1;
var i, j : byte;
begin
CURSOFF;
ClrScr;
writeln;
writeln ('Demonstration of panning by Prof. Timo Salmi');
writeln;
for i := 1 to 23 do
begin
for j := 1 to 3 do write ('This is a test ');
if i < 23 then writeln;
end;
for j := 1 to 17 do
begin
PANMR (7, 1, 80, 1, 2);
PANMR (7, 5, 80, 23, 2);
Delay (200);
end;
for j := 1 to 17 do
begin
PANML (7, 1, 80, 1, 2);
PANML (7, 5, 80, 23, 2);
Delay (50);
end;
repeat until KeyPressed;
CURSON;
end; (* test1 *)
(* Second test *)
procedure TEST2;
var i, j : byte;
begin
TextMode (C40);
CLB;
CURSOFF;
writeln;
writeln ('Demo of panning by Prof. Timo Salmi');
writeln ('What scrolls of the screen, is lost');
writeln;
for i := 1 to 22 do
begin
for j := 1 to 2 do write ('This is a test ');
if i < 22 then writeln;
end;
repeat
for j := 1 to 10 do
begin
PANMR (7, 1, WIDTHFN, 1, 1);
PANMR (7, 6, WIDTHFN, 23, 1);
Delay (50);
end;
for j := 1 to 10 do
begin
PANML (7, 1, WIDTHFN, 1, 1);
PANML (7, 6, WIDTHFN, 23, 1);
Delay (10);
end;
until KeyPressed;
CURSON;
end; (* test2 *)
(* Third test *)
procedure TEST3;
begin
TextMode (C80);
ClrScr;
GoToXY (20,13);
write ('Look at the lower right-hand side corner');
VIDXY (80, 25, 'X', ATTRIBFN(yellow+blink, blue));
CLB;
repeat until KeyPressed;
end;
(* Main program *)
begin
TEST1;
TEST2;
TEST3;
CURSON;
Repeat until KeyPressed;
end. (* TSUNTA.TST *)