home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / turbo4 / grexampl.arc / CLRVP.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-11-17  |  391 b   |  19 lines

  1. uses
  2.   Graph;
  3. var
  4.   Gd, Gm : integer;
  5.  
  6. begin
  7.   Gd := Detect;
  8.   InitGraph(Gd, Gm, '');
  9.   if GraphResult <> grOk then
  10.     Halt(1);
  11.   Rectangle(19, 19, GetMaxX-19, GetMaxY-19);
  12.   SetViewPort(20, 20, GetMaxX-20, GetMaxY-20, ClipOn);
  13.   OutTextXY(0, 0, '<RETURN> clears viewport:');
  14.   Readln;
  15.   ClearViewPort;
  16.   OutTextXY(0, 0, '<RETURN> to quit:');
  17.   Readln;
  18.   CloseGraph;
  19. end.