DEFINE MENU
Contents
Class
Menus
Purpose
Define an Xbase style main menu bar
Syntax
DEFINE MENU <expC1>
[COLOR SCHEME <expN>]
[IN [WINDOW] <window name> | IN SCREEN]
[MESSAGE <expC2>]
See Also
ACTIVATE MENU, ACTIVATE POPUP, CLEAR POPUPS, DEACTIVATE MENU, DEACTIVATE POPUP, DEFINE BAR, DEFINE PAD, DEFINE POPUP, HIDE MENU, ON PAD, ON SELECTION PAD, ON SELECTION POPUP, PADPROMPT(), RELEASE MENUS, RELEASE POPUPS, SET COMPATIBLE, SHOW POPUP
Description
The DEFINE MENU command defines the menu name <expC1> of the main menu bar for Xbase style menus. The command does not create a menu bar on its own, but serves as the first step in the process. The next steps include creating options along the menu bar with the DEFINE PAD command and associating actions with the options with the ON PAD and ON SELECTION PAD commands. The command SET COMPATIBLE should be set ON when using Xbase style menus.
COLOR SCHEME <expN>
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.
IN [WINDOW] <window> | IN SCREEN
The optional IN [WINDOW] <window> | IN SCREEN clause allows the menu to be defined for display in a specified window, IN [WINDOW] <window name> or to be defined for display in the main screen when a window is currently active, IN SCREEN.
MESSAGE <expC2>
The optional MESSAGE command will display <expC2> in the message line.
Example
define menu sort_men message "Main Menu"
Products
Recital Mirage Server, Recital Terminal Developer