Difference between revisions of "READ MENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=READ MENU=
 
 
 
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Activate a FoxBASE+ style pop-up menu
 
Activate a FoxBASE+ style pop-up menu
Line 19: Line 12:
  
 
==See Also==
 
==See Also==
[[@…MENU]], [[MENU]], [[MENU BAR]], [[READ MENU BAR]]
+
[[@...MENU]], [[MENU]], [[MENU BAR]], [[READ MENU BAR]]
  
  
Line 41: Line 34:
 
m_choice = 0
 
m_choice = 0
 
@ 5,0 menu choice,3 title "Choices"
 
@ 5,0 menu choice,3 title "Choices"
 +
 
// Activate menu
 
// Activate menu
 
read menu to mchoice
 
read menu to mchoice
Line 47: Line 41:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Menus]]
 +
[[Category:Menus Commands]]

Latest revision as of 16:08, 12 November 2009

Purpose

Activate a FoxBASE+ style pop-up menu


Syntax

READ MENU TO <memvar>

[SAVE]

[TIMEOUT <expN>]


See Also

@...MENU, MENU, MENU BAR, READ MENU BAR


Description

The READ MENU activates a pop-up menu defined by the @…MENU command. The <memvar> is a variable with the initial starting position of the highlighting bar. This <memvar> returns the selected menu item number.

SAVE

The menu options are not released and can be activated by another READ MENU command.

TIMEOUT <expN>

The TIMEOUT clause determines how long in seconds, <expN>, the READ MENU will wait for user input before exiting automatically.


Example

// Define menu
dimension choice(3,1)
choice(1) = "Edit"
choice(2) = "Delete"
choice(3) = "Add"
m_choice = 0
@ 5,0 menu choice,3 title "Choices"
 
// Activate menu
read menu to mchoice


Products

Recital