Difference between revisions of "ON EXIT MENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Execute a command when the cursor exits an Xbase style menu pad
 
Execute a command when the cursor exits an Xbase style menu pad
Line 26: Line 22:
 
define menu main
 
define menu main
 
define pad exit of main;
 
define pad exit of main;
   prompt "<Exit" at 0,0
+
   prompt "\<Exit" at 0,0
 
define pad filelist of main;
 
define pad filelist of main;
   prompt "<Files" at 0,6
+
   prompt "\<Files" at 0,6
  
 
on menu main dialog box "On Menu"
 
on menu main dialog box "On Menu"
Line 37: Line 33:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Menus]]
 
[[Category:Menus]]
 
[[Category:Menus Commands]]
 
[[Category:Menus Commands]]

Latest revision as of 15:42, 12 November 2009

Purpose

Execute a command when the cursor exits an Xbase style menu pad


Syntax

ON EXIT MENU <menu name> [<command>]


See Also

ACTIVATE MENU, DEFINE MENU, DEFINE PAD, ON BAR, ON EXIT BAR, ON EXIT PAD, ON MENU, ON PAD, ON SELECTION MENU, ON SELECTION PAD, SET COMPATIBLE, SET SCOREBOARD


Description

The ON EXIT MENU command is used to specify commands which will execute when the cursor moves off of menu bars that do not have an ON EXIT PAD command associated with them. A pad is a menu option in a Xbase style menu. These types of menus are created with the DEFINE MENU and DEFINE PAD commands. The menu is identified by the name <menu name> that was assigned with the DEFINE MENU command. The command SET COMPATIBLE should be ON when using Xbase style menus.

<command>

The specified command may be any Recital/4GL command. To specify a command that will execute when an individual pad is selected, see the ON SELECTION PAD command. To specify a command to execute when an individual pad is highlighted, use the ON PAD command. Commands specified by an ON EXIT PAD command override commands specified by the ON EXIT MENU command. Used without a specified command, the ON EXIT MENU command disables previously specified commands.


Example

define menu main
define pad exit of main;
  prompt "\<Exit" at 0,0
define pad filelist of main;
  prompt "\<Files" at 0,6
 
on menu main dialog box "On Menu"
on exit menu main dialog box "On Exit Menu"
activate menu main


Products

Recital