home *** CD-ROM | disk | FTP | other *** search
- Program Illustrating_The_Menu_Kit;
-
- {$I Decl.ttt}
- {$I Fastwrit.TTT}
- {$I Window.TTT}
- {$I Misc.TTT}
-
- {$I Menu.TTT}
-
- Procedure My_Menu;
- var
- M : menu_record;
- Pick, Retcode : integer;
-
- begin
- With M do
- begin
- Heading := 'The Main Menu';
- Text[1] := 'View Reports on screen';
- Text[2] := 'Send Reports to a Print File';
- Text[3] := 'Print The Reports';
- Text[4] := 'Quit';
- TotalPicks := 4;
- PicksPerLine := 1;
- AddPrefix := 3;
- TopleftXY[1] := 0;
- TopLeftXY[2] := 7;
- BoxType := 1;
- Colors[1] := white;
- Colors[2] := red;
- Colors[3] := lightred;
- Colors[4] := black;
- Colors[5] := yellow;
- AllowEsc := false;
- end; {with M}
- Pick := 4; {default to Quit}
- DisplayMenu(M,False,Pick,Retcode); {go do it!}
- ClrScr;
- Case Pick of
- 1 : writeln('You chose 1');
- 2 : writeln('You chose 2');
- 3 : writeln('You chose 3');
- 4 : writeln('You chose 4');
- end; {case}
- end; {procedure My_menu}
-
- begin
- ClrScr;
- OffCursor;
- My_menu;
- Oncursor;
- Writeln('Run DemoTTT.com for the main demo program');
- Write('Technojocks Turbo Toolkit');
- end.