Difference between revisions of "ON SELECTION PAD"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ON SELECTION PAD=
 
 
 
 
==Class==
 
==Class==
 
Menus
 
Menus
Line 28: Line 25:
 
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,06
+
  prompt "<Files" at 0,06
  
 
on pad filelist of main activate popup files
 
on pad filelist of main activate popup files
Line 43: Line 40:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Menus]]
 +
[[Category:Menus Commands]]

Revision as of 08:51, 3 June 2009

Class

Menus


Purpose

Define actions performed on pad selection in a dBASE-IV style menu


Syntax

ON SELECTION PAD <pad> OF <menu> [<command>]


See Also

ACTIVATE MENU, DEACTIVATE MENU, DEFINE MENU, DEFINE PAD, ON EXIT PAD, ON PAD, ON SELECTION MENU, MENU(), PAD(), PROMPT(), SET COMPATIBLE


Description

The ON SELECTION PAD command defines actions performed on a pad selection within a dBASE-IV style menu. The pad and menu are identified with the names that were assigned with the DEFINE MENU and DEFINE PAD commands. 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 PAD disables previously specified commands. To specify the same selection command for all pads in a menu, use the ON SELECTION MENU command.


Example

define menu main
define pad exit of main;
  prompt "<Exit" at 0,0
define pad filelist of main;
  prompt "<Files" at 0,06
 
on pad filelist of main activate popup files
on selection pad exit of main deactivate menu
 
activate menu main


Products

Recital Mirage Server, Recital Terminal Developer