Difference between revisions of "ON SELECTION POPUP"

From Recital Documentation Wiki
Jump to: navigation, search
(Example)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Defines actions for Xbase style pop-up menu selection
 
Defines actions for Xbase style pop-up menu selection
Line 34: Line 30:
 
   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,6
 
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
Line 46: Line 42:
 
activate menu main
 
activate menu main
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Menus]]
 
[[Category:Menus]]
 
[[Category:Menus Commands]]
 
[[Category:Menus Commands]]

Latest revision as of 13:18, 14 August 2018

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