1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| PROCEDURE monitor;
begin
textmode(2);clrscr;textcolor(7);
gotoxy(10,6);writeln('What kind of monitor do you have ?');
writeln;writeln(' . [1] monochrome monitor');
writeln;writeln(' . [2] color monitor EGA mode');
writeln;writeln(' . [3] color monitor VGA mode');
repeat
key:=readkey;
until (key='1') or (key='2') or (key='3');
if (key='1') then begin colour:=1; end;
if (key='2') then begin colour:=2; end;
if (key='3') then begin colour:=3; end;
if colour=3 then begin modegraphe:=vgalo;carte:=vga;
aC:=9;bC:=10;cC:=11;dC:=12;eC:=13;
fC:=14;gC:=15;hC:=16; end;
if colour=2 then begin modegraphe:=egalo;carte:=ega;
aC:=9;bC:=10;cC:=11;dC:=12;eC:=13;
fC:=14;gC:=15;hC:=16; end;
if colour=1 then begin modegraphe:=cgahi;carte:=cga;
aC:=7;bC:=7;cC:=7;dC:=7;eC:=7;
fC:=7;gC:=7;hC:=8; end;
gotoxy(5,20);textcolor(aC);
write('Name of your Firm (8 letters max) : ');firm:='';firm:=acqchaine;
end;
PROCEDURE page1;
begin
initgraph(carte,modegraphe,'');
setcolor(bC);settextstyle(1,0,5); |
Partager