Difference between revisions of "@...PROMPT"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Menus | Menus | ||
Line 40: | Line 37: | ||
<code lang="recital"> | <code lang="recital"> | ||
@10,10 prompt "edit"; | @10,10 prompt "edit"; | ||
− | message "Edit a record" | + | message "Edit a record" |
@11,10 prompt "append"; | @11,10 prompt "append"; | ||
− | message "Add a record" | + | message "Add a record" |
@12,10 prompt "delete"; | @12,10 prompt "delete"; | ||
− | message "Delete a record" | + | message "Delete a record" |
menu to choice | menu to choice | ||
do case | do case | ||
− | + | case choice = 1 | |
− | + | do editproc | |
− | + | case choice = 2 | |
− | + | do addproc | |
− | + | case choice = 3 | |
− | + | do deleproc | |
− | + | otherwise | |
− | + | ? "No choice made" | |
endcase | endcase | ||
Revision as of 10:52, 27 April 2009
Contents
Class
Menus
Purpose
Display a menu option
Syntax
@ <expN1>,<expN2> PROMPT <expC1>
[MESSAGE <expC2>]
[SIZE <expN3>,<expN4>]
[IMAGE <expC3>]
See Also
@...BOX, @...CLEAR, @...GET, @...FILL, @...MENU, @...SAY, @...SCROLL, @...TO, CREATE SCREEN, MENU, MENU TO, MODIFY SCREEN
Description
The @...PROMPT command is used in conjunction with the MENU TO command. @..PROMPT displays a menu with the prompt <expC1> at the row and column position specified by <expN1> and <expN2>. The menu is activated using the MENU TO <variable> command and the number of the selected menu is stored to <variable>. Menu numbers start from 1.
MESSAGE <expC2>
If the optional MESSAGE clause is specified, <expC2> is displayed in the message line when that menu is highlighted.
SIZE <expN3>,<expN4>
The SIZE clause can be used under Recital Mirage to define the size of the prompt <expC1> or image <expC3>. The <expN3> refers to the number of rows occupied by an image, <expN4> to the number of columns occupied by an image or prompt.
IMAGE <expC3>
The IMAGE clause can be used under Recital Mirage to define an image to be displayed in place of the textual prompt. The GIF or JPEG image file to be displayed is specified using <expC3>.
Example
@10,10 prompt "edit"; message "Edit a record" @11,10 prompt "append"; message "Add a record" @12,10 prompt "delete"; message "Delete a record" menu to choice do case case choice = 1 do editproc case choice = 2 do addproc case choice = 3 do deleproc otherwise ? "No choice made" endcase //Recital Mirage @5,30 prompt "Edit" message "Edit menu" size 2,2 image "lockbtn.gif" @7,30 prompt "Append" message "Append menu" size 2,2 image "newbtn.gif" @9,30 prompt "Delete" message "Delete menu" size 2,2 image "deletebtn.gif" menu to m_var
Products
Recital Mirage Server, Recital Terminal Developer