home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
turbo5
/
bgiexamp.arc
/
MAXMODE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-08-29
|
402b
|
18 lines
{ example for GetMaxMode &&&& GetModeName }
uses
Graph;
var
Driver, Mode : Integer;
i : Integer;
begin
Driver := Detect; { Put in graphics mode }
InitGraph(Driver, Mode, '');
if GraphResult < 0 then
Halt(1);
for i := 0 to GetMaxMode do { display all the mode names }
OutTextXY(10, 10 * Succ(i), GetModeName(i));
Readln;
Closegraph;
end.