ON SELECTION POPUP

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Defines actions for Xbase style pop-up menu selection


Syntax

ON SELECTION POPUP <popup> | ALL [BLANK] [<command>]


See Also

ACTIVATE MENU, ACTIVATE POPUP, CLEAR POPUPS, DEACTIVATE MENU, DEACTIVATE POPUP, DEFINE BAR, DEFINE MENU, DEFINE PAD, DEFINE POPUP, ON PAD, ON SELECTION PAD, RELEASE MENUS, RELEASE POPUPS, SHOW MENU, SHOW POPUP


Description

The ON SELECTION POPUP command defines actions for dBASE IV style pop-up menu selections. These types of pop-up menus are created with the DEFINE POPUP and DEFINE BAR commands. The pop-up is identified using the name which was assigned with the DEFINE POPUP command. The command SET COMPATIBLE should be ON when using dBASE-IV style menus.

ALL

The ALL clause will apply the specified <command> to all pop-up menus.

BLANK

The BLANK keyword clears the active pop-up menu from the screen before executing the specified commands.

<command>

The command to be run when the specified popup is selected. If no command is specified, the popup is reset.


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
 
define popup files from 1,06
define bar 1 of files prompt "\<Programs"
define bar 2 of files prompt "\<Databases"
define bar 3 of files prompt "\<Reports"
define bar 4 of files prompt "\<Screens"
on selection popup files dialog box prompt()
activate menu main

Products

Recital