ON SELECTION PAD

From Recital Documentation Wiki
Revision as of 15:52, 12 November 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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