Progress
Programming
Handbook
Defining Accelerators
You can define an accelerator for a menu item by adding the ACCELERATOR option to the menu item description.
This is the syntax for a menu accelerator:
In this syntax, the value keylabel must be a character-string constant that evaluates to a valid Progress key label. You can modify the keylabel by specifying one or more of these keys—SHIFT, CTRL, or ALT. For example, you can specify “ALT–F8", “PAGE–UP”, etc. When the user presses the specified key(s), the menu item is selected.
Note that Progress automatically adds the specified accelerator key to the menu item after the label. You should not put the accelerator into the label. For example, if you specify "CTRL–P," Progress adds CTRL+P to the menu item (CTRL–P in character interfaces).
The following code fragment specifies two accelerator keys, CNTL–N and CNTL–P.
Progress displays the menu items as follows:
NOTE: Progress does not support accelerators for pop-up menu items. If you define them, Progress ignores them.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |