home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
surfmodl
/
surfm203.arc
/
SURFSRC.ARC
/
MENU.INC
< prev
next >
Wrap
Text File
|
1988-02-06
|
1KB
|
34 lines
procedure MENU (var Cmmd: integer);
begin
repeat
openwin (13,6,67,21);
gotoXY(1,1);
writeln (' SURFMODL ', Surfmvsn, ' (',Lastupd,')');
writeln;
writeln (' by Kenneth Van Camp and his Band of Merry Men');
writeln (' (Turbo 4.0 conversion by Kevin Lowey)');
writeln;
writeln (' MAIN MENU');
writeln;
writeln (' 1 Change Parameters');
writeln (' 2 Wire Frame Plot');
writeln (' 3 Hidden Line Removal');
writeln (' 4 Surface Model');
writeln (' 0 Exit Program');
writeln;
write ('Command: ');
Cmmd := getkey;
if (Cmmd < 0) or (Cmmd > 4) then
write(^G)
else begin
writeln (cmmd);
if cmmd = 0 then begin
write ('Do you really want to quit (Y/N): ');
if upcase (readkey) <> 'Y' then
cmmd := -1;
end;
end;
until ((Cmmd >= 0) and (Cmmd < 5));
end; { procedure Menu }