Difference between revisions of "ON EXIT POPUP"

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 moves off of bars in a pop-up Xbase style menu
 
Execute a command when the cursor moves off of bars in a pop-up Xbase style menu
Line 24: Line 20:
 
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 pad filelist of main activate popup files
 
on pad filelist of main activate popup files
Line 32: Line 28:
  
 
define popup files from 1,06
 
define popup files from 1,06
define bar 1 of files prompt "<Programs>"
+
define bar 1 of files prompt "\<Programs"
define bar 2 of files prompt "<Databases"
+
define bar 2 of files prompt "\<Databases"
  
 
on popup files dialog box "On Popup"
 
on popup files dialog box "On Popup"
Line 42: Line 38:
  
 
==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:47, 12 November 2009

Purpose

Execute a command when the cursor moves off of bars in a pop-up Xbase style menu


Syntax

ON EXIT POPUP <pop-up> [<command>]


See Also

ACTIVATE POPUP, BAR(), DEACTIVATE POPUP, DEFINE BAR, DEFINE POPUP, ON BAR, ON POPUP, ON SELECTION BAR, ON EXIT BAR, ON EXIT MENU, ON SELECTION POPUP, POPUP(), PROMPT(), SHOW POPUP, SET COMPATIBLE

Description

The ON EXIT POPUP command is used to specify commands which will execute when the cursor moves off of menu bars. A bar is a menu option in an Xbase style popup menu. These types of menus are created with the DEFINE POPUP and DEFINE BAR commands. The pop-up menu is identified by the name <pop-up> that was assigned with the DEFINE POPUP command. The command SET COMPATIBLE should be ON when using Xbase style menus.

The specified command, <command>, may be any Recital/4GL command. To specify a command that will execute when a bar is selected, see the ON SELECTION BAR command. Used without a specified command, the ON EXIT POPUP command disables previously specified commands. Commands specified by an ON EXIT BAR command override commands specified by the ON EXIT POPUP command.


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 pad filelist of main activate popup files
on selection pad exit of main deactivate menu
 
define popup files from 1,06
define bar 1 of files prompt "\<Programs"
define bar 2 of files prompt "\<Databases"
 
on popup files dialog box "On Popup"
on exit popup files dialog box "On Exit Popup"
activate menu main


Products

Recital