Progress
Programming
Handbook


Menu Mnemonics

For quick access, the user can select an item from a pull-down menu or menu bar by pressing ALT and one mnemonic character. Progress indicates the mnemonic character by underlining it within the menu. For example, a menu bar might contain the entries File, Edit, and Exit. This means that you can access the File menu by pressing ALTF, the Edit menu by pressing ALTE, and the Exit menu by pressing ALTX.

NOTE: If you define a menu mnemonic key combination as an accelerator, the accelerator takes precedence. For more information on key precedence, see Handling User Input."

In Progress, you can define mnemonics for items in a menu bar, pull-down menu, or pop-up menu. To specify a mnemonic, insert an ampersand (&) before that letter in the label. For example, to make x the mnemonic for Exit, you specify LABEL "E&xit". Note that in graphical and character interfaces, the first character in an item’s label is the default mnemonic. You can only specify one mnemonic for each label; do not precede more than one letter with an ampersand.

To include a literal ampersand within a menu label, use two ampersands. For example, the label "Undo && Restart" is displayed as Undo & Restart.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095