DEFINE POPUP
Contents
DEFINE POPUP
Class
Menus
Purpose
Define an xBase style pop-up menu.
Syntax
DEFINE POPUP <expC1> FROM <expN1>, <expN2> [TO <expN3>, <expN4>]
[COLOR SCHEME <expN5>]
[FOOTER <expC2>
[MESSAGE <expC3>]
[PROMPT FIELD <expC4>]
[PROMPT FILES [LIKE <skeleton>]]
[PROMPT QUERY]
[PROMPT SCOPE]
[PROMPT STRUCTURE]
See Also
ACTIVATE POPUP, BAR(), DEFINE BAR, DIALOG FIELDS, DIALOG FILES, DIALOG QUERY, DIALOG SCOPE, MENU FIELDS, MENU FILES, MENU QUERY, MENU SCOPE, ON SELECTION POPUP, POPUP(), PRMBAR(), PROMPT(), SET COMPATIBLE
Description
The DEFINE POPUP command names, shapes and defines an Xbase style pop-up menu. The name of the popup is specified using <expC1>. The FROM <expN1>, <expN2> coordinates are used to align the pop-up menu beneath the appropriate pad of the menu bar. The <expN1> specifies the top left row coordinate, the <expN2> the top left column coordinate. The bottom right row and column coordinates can be specified using the optional TO <expN3>,<expN4>. If these coordinates are not supplied, the pop-up menu will adjust to the longest field and will include the maximum number of lines.
COLOR SCHEME <expN5>
The optional COLOR SCHEME command will display the menu items in the colors defined in scheme<expN>. Color schemes are defined by the command SET COLOR OF SCHEME command.
FOOTER <expC2>
The FOOTER <expC2> option causes the specified text, <expC2> to be displayed centered at the bottom of the popup.
MESSAGE <expC3>
The MESSAGE option centers the character expression, <expC3>, on the screen message line.
PROMPT FIELD <expC4>
The PROMPT FIELD <expC4> fills the pop-up window with the contents of the specified field for every record in the table.
PROMPT FILES
The PROMPT FILES option displays a list of filenames. Specifying the optional LIKE <skeleton> clause, restricts the files to those that match the skeleton.
PROMPT STRUCTURE
The PROMPT STRUCTURE option fills the pop-up window with fields from the current table
PROMPT QUERY
The PROMPT QUERY option displays the query menu from the current table on the screen
PROMPT SCOPE
The PROMPT SCOPE option displays the scope menu on the screen
Example
define popup popup_1 from 1,0 prompt files define popup popup_2 from 1,7 prompt field name
Products
Recital Mirage Server, Recital Terminal Developer