Difference between revisions of "ON SELECTION BAR"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Menus | Menus | ||
Line 15: | Line 12: | ||
==See Also== | ==See Also== | ||
− | [[ACTIVATE POPUP]], [[DEACTIVATE POPUP]], [[DEFINE BAR]], [[DEFINE POPUP]], [[ON BAR]], [[ON EXIT BAR]], [[ON EXIT POPUP]], [[ON POPUP]], [[ON SELECTION POPUP]], [[ | + | [[ACTIVATE POPUP]], [[DEACTIVATE POPUP]], [[DEFINE BAR]], [[DEFINE POPUP]], [[ON BAR]], [[ON EXIT BAR]], [[ON EXIT POPUP]], [[ON POPUP]], [[ON SELECTION POPUP]], [[SET COMPATIBLE]], [[SHOW POPUP]] |
Line 29: | Line 26: | ||
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,6 | + | prompt "<Files" at 0,6 |
on pad filelist of main activate popup files | on pad filelist of main activate popup files | ||
Line 52: | Line 49: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Menus]] | ||
+ | [[Category:Menus Commands]] |
Revision as of 08:49, 3 June 2009
Class
Menus
Purpose
Defines commands for pop-up menu selection
Syntax
ON SELECTION BAR <expN> OF POPUP <popup> [<command>]
See Also
ACTIVATE POPUP, DEACTIVATE POPUP, DEFINE BAR, DEFINE POPUP, ON BAR, ON EXIT BAR, ON EXIT POPUP, ON POPUP, ON SELECTION POPUP, SET COMPATIBLE, SHOW POPUP
Description
The ON SELECTION BAR command defines a command that will be executed when the specified menu bar is selected. A menu bar is a selection option in dBASE-IV style pop-up menus. Pop-up menus of this type are created with the DEFINE POPUP and DEFINE BAR commands. The bar is identified by the numeric expression <expN> that was assigned with the DEFINE BAR command. The pop-up is identified by its name which was assigned with the DEFINE POPUP command. The command SET COMPATIBLE should be ON when using dBASE IV style menus.
<command>
To specify commands which execute when the menu bar is highlighted, use the ON BAR command. To specify commands that execute when the menu bar is exited, use the ON EXIT BAR 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 define popup files from 1,06 define bar 1 of files prompt "<Programs>" define bar 2 of files prompt "<Databases" on selection bar 1 of popup files; dialog box "Bar 1" on selection bar 2 of popup files; dialog box "Bar 2" activate menu main
Products
Recital Mirage Server, Recital Terminal Developer