home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
tot5.zip
/
DEMMN1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-02-11
|
708b
|
31 lines
program DemoMenuOne;
{DEMMN1 - a basic menu}
USES DOS, CRT,
totMENU, totFAST;
var
Main: MenuOBJ;
Choice: byte;
begin
Screen.Clear(white,'░'); {paint the screen}
with Main do
begin
Init;
AddItem('');
AddItem(' Load a file ');
AddItem(' Edit Date ');
AddItem(' Save the file ');
AddItem(' Change configuration ');
AddItem('-');
AddItem(' Quit ');
SetStyleTitle(1,' Main Menu ');
SetActiveItem(2);
Choice := Activate;
Done;
end;
if Choice = 0 then
Writeln('You escaped')
else
Writeln('You selected menu item ',Choice);
end.