home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l043 / 3.ddi / SETACTPG.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-11-02  |  425 b   |  23 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.   if (Gd = HercMono) or (Gd = EGA) or
  12.      (Gd = EGA64)    or (Gd = VGA) then
  13.     begin
  14.       SetVisualPage(0);
  15.       SetActivePage(1);
  16.       Rectangle(10, 20, 30, 40);
  17.       SetVisualPage(1);
  18.     end
  19.   else
  20.     OutText('No paging supported.');
  21.   Readln;
  22.   CloseGraph;
  23. end.