Difference between revisions of "ON PAD"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ON PAD=
 
 
 
 
==Class==
 
==Class==
 
Menus
 
Menus
Line 30: Line 27:
 
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 45: Line 42:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Menus]]
 +
[[Category:Menus Commands]]

Revision as of 08:48, 3 June 2009

Class

Menus


Purpose

Define the pop-up menu selection for dBASE-IV style menus


Syntax

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


See Also

DEFINE MENU, DEFINE PAD, ON BAR, ON EXIT BAR, ON EXIT MENU, ON MENU, ON POPUP, ON SELECTION MENU, ON SELECTION PAD, PAD(), SET SCOREBOARD, SET COMPATIBLE


Description

The ON PAD command is used to associate a command with a pad in an Xbase style menu. The pad, which must be defined with the DEFINE PAD command, is specified with <pad name>. The menu which that pad belongs to must be specified with <menu name>.

Typically the ON PAD command is used with the ACTIVATE POPUP command. This activates a pop-up menu when the menu pad is highlighted. Other commands may be used, or a call to a program or procedure may be made.

To specify the same command to execute on all pads, use the ON MENU command. To specify a command to execute when the pad is selected, see the ON SELECTION 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 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