home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************
-
- Turbo Prolog Toolbox
- (C) Copyright 1987 Borland International.
-
- Demo of linemenu
- ****************************************************************/
-
- include "tdoms.pro"
- include "tpreds.pro"
- include "linemenu.pro"
- include "status.pro"
-
- GOAL
- makewindow(1,23,0,"test",0,0,24,80),
- cursor(5,0),
- makestatus(112," Choose a programming language Make selection with capital letter or -> <-"),
- linemenu(0,7,66,["Basic","Fortran","Pascal","APL","Lisp","Prolog"],CH1),
- write("Last time you chose item number ",CH1),nl,
- changestatus(" Now choose from an unframed menu Make selection with small letter or -> <-"),
- linemenu(0,66,0,[basic,fortran,pascal,apl,lisp,prolog],CHOICE),
- changestatus(""),
- write("This time you chose item number ",CHOICE),nl,
- write("End of demo"),nl.