home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
pibterm
/
pibt41e3.arc
/
SHOWMENU.SCR
< prev
next >
Wrap
Text File
|
1988-02-26
|
2KB
|
47 lines
***************************************************************************
* S H O W M E N U . S C R --- Show script menu facility *
***************************************************************************
* *
* Script: ShowMenu.Scr *
* *
* Purpose: Show how to use MENU script command. *
* *
* Invocation: *
* *
* Execute "ShowMenu" *
* *
***************************************************************************
*
* Menu item choice index
Declare I1 Integer
* Menu displayed at column 15, row 10.
* Default item is 3 = quit.
* Menu title is 'My menu!'.
* There are three menu choices.
*
* Index Column Row Default Title Item 1 Item 2 Item 3
* ----- ------ --- ------- ---------- ------- ------- -------
Menu I1 15 10 3 'My menu!' 'H)elp' 'L)ist' 'Q)uit'
*
DOCASE I1 OF
CASE 1
GoToXY 10 20
Message " "
Message "You selected HELP"
ENDCASE
CASE 2
GoToXY 10 20
Message " "
Message "You selected LIST"
ENDCASE
CASE 3
GoToXY 10 20
Message " "
Message "You selected QUIT"
ENDCASE
CASE ELSE
GoToXY 10 20
Message " "
Message "You selected ESCAPE"
ENDCASE
ENDDOCASE