home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / turbo5 / bgiexamp.arc / MAXMODE.PAS < prev    next >
Pascal/Delphi Source File  |  1988-08-29  |  402b  |  18 lines

  1. { example for GetMaxMode &&&& GetModeName }
  2.  
  3. uses
  4.   Graph;
  5. var
  6.   Driver, Mode : Integer;
  7.   i : Integer;
  8. begin
  9.   Driver := Detect;                { Put in graphics mode }
  10.   InitGraph(Driver, Mode, '');
  11.   if GraphResult < 0 then
  12.     Halt(1);
  13.   for i := 0 to GetMaxMode do      { display all the mode names }
  14.     OutTextXY(10, 10 * Succ(i), GetModeName(i));
  15.   Readln;
  16.   Closegraph;
  17. end.
  18.