Difference between revisions of "ON SELECTION MENU"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Menus | Menus | ||
Line 28: | Line 25: | ||
<code lang="recital"> | <code lang="recital"> | ||
define menu main | define menu main | ||
− | define pad exit of | + | 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 selection menu main dialog box prompt() | on selection menu main dialog box prompt() | ||
Line 42: | Line 39: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Menus]] | ||
+ | [[Category:Menus Commands]] |
Revision as of 08:50, 3 June 2009
Class
Menus
Purpose
Define actions performed on every pad in a dBASE-IV style menu
Syntax
ON SELECTION MENU <menu> [<command>]
See Also
ACTIVATE POPUP, DEACTIVATE POPUP, DEFINE BAR, DEFINE POPUP, ON BAR, ON EXIT BAR, ON EXIT POPUP, ON POPUP, ON SELECTION POPUP, ON SELECTION PAD, SET COMPATIBLE
Description
The ON SELECTION MENU command defines actions performed on pads that do not have an ON SELECTION PAD command associated with them. Pads are options in Xbase style menus. These types of menus are created with the DEFINE MENU and DEFINE PAD commands. The menu is identified with the name that was assigned with the DEFINE MENU command. Pad selection occurs when the user moves the highlight onto the menu prompt and presses the [RETURN] key. The command SET COMPATIBLE should be set ON when using Xbase style menus.
<command>
If no command is given, ON SELECTION MENU disables previously specified commands. To specify the same command for individual pads in a menu, use the ON SELECTION PAD command. To specify commands which will execute when pads are highlighted, use the ON PAD 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 selection menu main dialog box prompt() activate menu main
Products
Recital Mirage Server, Recital Terminal Developer