ON PAD

From Recital Documentation Wiki
Revision as of 09:35, 3 June 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

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