Difference between revisions of "ON EXIT PAD"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Menus | Menus | ||
Line 15: | Line 12: | ||
==See Also== | ==See Also== | ||
− | [[ACTIVATE MENU]], [[DEACTIVATE MENU]], [[DEFINE MENU]], [[DEFINE PAD]], [[ON BAR]], [[ON EXIT BAR]], [[ON EXIT MENU]], [[ON MENU]], [[ON PAD]], [[ON SELECTION PAD]], [[SET COMPATIBLE]], [[SET SCOREBOARD]] | + | [[ACTIVATE MENU]], [[DEACTIVATE MENU]], [[DEFINE MENU]], [[DEFINE PAD]], [[ON BAR]], [[ON EXIT BAR]], [[ON EXIT MENU]], [[ON MENU]], [[ON PAD]], [[ON SELECTION PAD]], [[PAD()]], [[SET COMPATIBLE]], [[SET SCOREBOARD]] |
Line 35: | Line 32: | ||
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 50: | Line 47: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Menus]] | ||
+ | [[Category:Menus Commands]] |
Revision as of 08:45, 3 June 2009
Contents
Class
Menus
Purpose
Execute a command when a menu pad is exited
Syntax
ON EXIT PAD <pad name> OF <menu name> [<command>]
See Also
ACTIVATE MENU, DEACTIVATE MENU, DEFINE MENU, DEFINE PAD, ON BAR, ON EXIT BAR, ON EXIT MENU, ON MENU, ON PAD, ON SELECTION PAD, PAD(), SET COMPATIBLE, SET SCOREBOARD
Description
The ON EXIT PAD command is used to specify commands which will execute when the cursor moves off of the specified menu pad. A pad is a menu option in an Xbase style menu. These types of menus are created with the DEFINE MENU and DEFINE PAD commands. The command SET COMPATIBLE should be ON when using Xbase style menus.
<pad-name>
The pad is identified by the name <pad name> that was assigned with the DEFINE PAD command.
The menu is identified by the name <menu name> that was assigned with the DEFINE MENU command.
<command>
The specified command may be any Recital/4GL command. To specify a command that will execute when a pad is highlighted, see the ON SELECTION PAD command. To specify the same exiting command for all pads in a menu, use the ON EXIT MENU 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 PAD 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 pad filelist of main activate popup files on selection pad exit of main deactivate menu on exit pad exit of main dialog box "Exit Pad" activate menu main
Products
Recital Mirage Server, Recital Terminal Developer