Difference between revisions of "ON SELECTION MENU"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=ON SELECTION MENU=
 
 
 
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Define actions performed on every pad in a dBASE-IV style menu
 
Define actions performed on every pad in a dBASE-IV style menu
Line 15: Line 8:
  
 
==See Also==
 
==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]]
+
[[ACTIVATE POPUP]], [[DEACTIVATE POPUP]], [[DEFINE BAR]], [[DEFINE POPUP]], [[ON BAR]], [[ON EXIT BAR]], [[ON EXIT POPUP]], [[ON POPUP]], [[ON SELECTION PAD]], [[ON SELECTION POPUP]], [[SET COMPATIBLE]]
  
  
Line 28: Line 21:
 
<code lang="recital">
 
<code lang="recital">
 
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 selection menu main dialog box prompt()
 
on selection menu main dialog box prompt()
Line 39: Line 32:
  
 
==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:52, 12 November 2009

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 PAD, ON SELECTION POPUP, 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