Difference between revisions of "ON SELECTION POPUP"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ON SELECTION POPUP=
 
 
 
 
==Class==
 
==Class==
 
Menus
 
Menus
Line 35: Line 32:
 
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
 
on selection pad exit of main deactivate menu
 
on selection pad exit of main deactivate menu
  
 
define popup files from 1,06
 
define popup files from 1,06
define bar 1 of files prompt "<Programs"
+
define bar 1 of files prompt "\<Programs"
define bar 2 of files prompt "<Databases"
+
define bar 2 of files prompt "\<Databases"
define bar 3 of files prompt "<Reports"
+
define bar 3 of files prompt "\<Reports"
define bar 4 of files prompt "<Screens"
+
define bar 4 of files prompt "\<Screens"
 
on selection popup files dialog box prompt()
 
on selection popup files dialog box prompt()
 
activate menu main
 
activate menu main
Line 55: Line 52:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Menus]]
 +
[[Category:Menus Commands]]

Revision as of 08:54, 3 June 2009

Class

Menus


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.06
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 Mirage Server, Recital Terminal Developer