Difference between revisions of "@...PROMPT"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Display a menu option
 
Display a menu option
Line 64: Line 60:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Menus]]
 
[[Category:Menus]]
 
[[Category:Menus Commands]]
 
[[Category:Menus Commands]]
 +
[[Category:UI Commands]]

Latest revision as of 11:14, 30 November 2009

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