home *** CD-ROM | disk | FTP | other *** search
- (* ------------------------------------------------------ *)
- (* MENUWAHL.PAS *)
- (* Demoprogramm zur Unit txMenu *)
- (* (c) 1990 Thomas Reimann & TOOLBOX *)
- (* ------------------------------------------------------ *)
- PROGRAM MenuWahl;
-
- USES txCrt, txMenu;
-
- VAR
- Wahl : INTEGER;
-
- BEGIN
- ClrScr;
- GotoXY(20,05); Write('---=== S E L E K T O R ===---');
- GotoXY(26,07); Write('<F1> Programm 1');
- GotoXY(26,08); Write('<F2> Programm 2');
- GotoXY(26,09); Write('<PGUP> Programm 3');
- GotoXY(26,10); Write('<ESC> Programm 4');
- GotoXY(26,11); Write('<END> Programm 5');
- GotoXY(26,12); Write('<Q> Programm 6');
- GotoXY(24,14); Write('Bitte wählen Sie : '#177);
- REPEAT
- Wahl := MenueWahl;
- GotoXY(19,20);
- CASE Wahl OF
- -59 : Write('Programm 1 - Tastatur-Code: ', Wahl:4);
- -60 : Write('Programm 2 - Tastatur-Code: ', Wahl:4);
- -73 : Write('Programm 3 - Tastatur-Code: ', Wahl:4);
- 27 : Write('Programm 4 - Tastatur-Code: ', Wahl:4);
- -79 : Write('Programm 5 - Tastatur-Code: ', Wahl:4);
- 113 : Write('Programm 6 - Tastatur-Code: ', Wahl:4);
- ELSE
- Write('Undefinierte Taste ! - Code:', Wahl:4, #7);
- END;
- UNTIL Wahl = 113;
- END.
- (* ------------------------------------------------------ *)
- (* Ende von MENUWAHL.PAS *)