Menu Special Characters
The following special characters help define the MENU item. Note that special suffixes are also available to alter a menu's behavior. FLOATMENUs only support the ")x", "&x", and "?x" characters.
|
Character |
Usage | ||
|
; |
Menu item separator. | ||
|
- |
Creates a separator line as the next menu item. | ||
|
/x or <x |
Sets the control keyboard equivalent of the item, where x is any valid control character or the F1 through F15 keys. The character is not part of the menu name. In addition, the Function Keys can also be qualified to require depression of the shift and control keys. The control keyboard function key commands are specified for a menu item using the '<' special character. For any given menu item only one hot key control keyboard command can be specified using the '<' or '/' special characters. | ||
|
|
| ||
|
|
The following {menu-data} string command syntax specify a Function Key control keyboard command: | ||
|
|
| ||
|
|
<Fnn - When this character sequence is encountered in a menu item string declaration, the function key specified by the 'nn' value is the hot key control keyboard command for the menu item. | ||
|
|
| ||
|
|
<sFnn or <SFnn - This character sequence identifies that the function key specified by the 'nn' value plus the shift key is the hot key control keyboard command for the menu item. | ||
|
|
| ||
|
|
<cFnn or <CFnn - This character sequence identifies that the function key specified by the 'nn' value plus the control key is the hot key control keyboard command for the menu item. | ||
|
|
| ||
|
|
<csFnn or <CSFnn or <scFnn or <SCFnn - This character sequence identifies that the function key specified by the 'nn' value plus the shift and control keys is the hot key control keyboard command for the menu item. | ||
|
|
| ||
|
|
Example: | ||
|
|
ALT+T - Alt keyboard sequence | ||
|
|
CTRL+T - Hot key control keyboard command | ||
|
|
ALT+N - Alt keyboard sequence | ||
|
|
F5 - Hot function (F5) keyboard command | ||
|
|
ALT+P - Alt keyboard sequence | ||
|
|
SHIFT+F5 - Hot function (F5) keyboard command plus SHIFT key | ||
|
|
(Note: The 0x9s below is a tab character that aligns the shortcut keys in a column.) | ||
|
|
. |
|
|
|
|
MENUDATA |
INIT |
")Demo;": |
|
|
|
|
"/T&Test",0x9,"CTRL+T;": |
|
|
|
|
"<F5&Next Item",0x9,"F5;": |
|
|
|
|
"&Previous Item",0x9,"SHIFT+F5<sF5" |
|
|
. |
|
|
|
|
|
CREATE |
XMENU,MENUDATA |
|
|
| ||
|
)x or &x |
Sets the Alt Keyboard Sequence of the item, where x is any valid character. The character is also part of the menu name and is displayed underlined. | ||
|
( |
Disables the item. | ||
|
<w or <W |
When this character sequence is specified in the first name field of the {menu-data}, a MDI window menu list is appended to the client frame menu.. | ||
|
?nnnnn |
Specifies the HELPID value for any menu items. | ||
Note:
When using the PL/B Web Server, there is no support for Menu special characters. All special characters are removed from PL/B menu strings and ignored.
![]() |