Difference between revisions of "DEFINE MENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=DEFINE MENU=
 
 
 
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Define an Xbase style main menu bar
 
Define an Xbase style main menu bar
Line 21: Line 14:
  
 
==See Also==
 
==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]], [[RELEASE MENUS]], [[RELEASE POPUPS]], [[SET COMPATIBLE]], [[SHOW POPUP]]
+
[[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]]
  
  
Line 44: Line 37:
  
 
==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 15:46, 10 November 2009

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