
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>@...prompt</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
@...PROMPT
Syntax: @ <expN1>, <expN2> PROMPT <expC1> [MESSAGE <expC2>]
Purpose: To paint menu prompts and define prompt messages to display
when the menu is activated.
Arguments: <expN1> is the row where the prompt displays.
<expN2> is the column where the prompt displays.
<expC> is the prompt string.
Options: Message: The MESSAGE clause defines the message to
display each time the current PROMPT is highlighted. The
message displays on the row specified by SET MESSAGE.
Usage: @...PROMPT is the display portion of the Clipper light-bar
menu system. Each @...PROMPT statement paints a menu prompt
and defines an associated MESSAGE to be displayed on the
line specified by SET MESSAGE TO. The light-bar menu is
then invoked with MENU TO. Prompts can be painted in any
order and configuration of row and column position. MENU TO
navigates them in the order they are defined.
There can be up to 32 PROMPTs per menu.
Color: PROMPTs are painted in the current standard
color. The highlight appears in the current enhanced color.
Library: CLIPPER.LIB
----------------------------------- Example --------------------------------
CLEAR
SET WRAP ON
SET MESSAGE TO 23 CENTER
@ 1, 3 PROMPT "File"
@ 1, COL() + 2 PROMPT "Edit"
@ 1, COL() + 2 PROMPT "Locate"
@ 1, COL() + 2 PROMPT "Options"
@ 1, COL() + 2 PROMPT "Print"
MENU TO choice
See Also: MENU TO SET COLOR SET MESSAGE SET WRAP ACHOICE()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson