DEFINE NEW SHARED PRIVATE MENU menu-nameFGCOLOR expressionBGCOLOR expressionDCOLOR expressionPFCOLOR expressionFONT numberTITLE title MENUBARLIKE menu menu-element-descriptorNEW SHARED MENU menu-nameSHARED MENU menu-namemenu-namePRIVATE MENU
Note: MENU menu-nameBGCOLOR expressionDCOLOR expressionFGCOLOR expressionPFCOLOR expressionFONT numberTITLE titleLIKE menuThis is the syntax for menu-element-descriptor:
menu-item-phraseSUB-MENU submenu DISABLED LABEL labelRULESKIP
Specifies a normal menu item. This is the syntax for menu-item-phrase:
MENU-ITEM menu-item-nameACCELERATOR keylabelBGCOLOR expressionDCOLOR expressionDISABLEDFGCOLOR expressionFONT expressionLABEL labelPFCOLOR expressionREAD-ONLYTOGGLE-BOXtrigger-phraseMENU-ITEM menu-item-nameACCELERATOR keylabelSpecifies a keyboard accelerator for this menu item. A keyboard accelerator is a key—sometimes modified by SHIFT, CONTROL, or ALT—that chooses a menu item even if the menu is not displayed. The value keylabel must be character-string expression that evaluates to a valid key label recognized by the AVM, such as a, F1, or ALT+SHIFT+F1. See the chapter on handling user input in the OpenEdge Development: Programming Interfaces for the precedence rules that the AVM uses for handling keyboard input.BGCOLOR expressionDCOLOR expressionFGCOLOR expressionFONT expressionLABEL labelPFCOLOR expressionFor more information, see the Trigger phrase reference entry.The r-bar.p procedure defines a menu bar, mbar, that contains three pull-down submenus labeled Topic, Move, and Exit. The handle of mbar is assigned to the current window. The ON statements define triggers to execute when you choose the corresponding menu items.
You cannot define a SHARED or NEW SHARED menu widget in a class definition (.cls) file. If you do, ABL generates a compilation error.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |