home *** CD-ROM | disk | FTP | other *** search
- Program WindDemo;
-
- Uses
- Crt,
- WindTool;
-
- Var
- ch : char;
- i,
- j : Integer;
- xSize,
- ySize,
- xStart,
- yStart : Byte;
-
- Begin
- Randomize;
- ClrScr;
- For i := 1 to 100 Do
- Begin
- xSize := Random ( 50 ) + 3; { Size of window in X direction }
- ySize := Random ( 20 ) + 3; { Size of window in Y direction }
- xStart := Random ( 79 - xSize ) + 1; { Upper left X location of window }
- yStart := Random ( 25 - ySize ) + 1; { Upper left Y location of window }
- OpenWindow ( xStart, yStart, xStart + xSize, yStart + ySize,
- Random ( 4 ) + 1, ( ( Random ( 8 ) ) shl 8 ) +
- Random ( 16 ), 'Test window:test window' );
- For j := 1 to 10 do
- Writeln ( i, 'This is a test, this is only a test...' );
- End;
- ch := ReadKey; { Wait until a key has been pressed }
- For i := 1 to 100 Do
- CloseWindow;
- ReadLn;
- End.
-