|
SmartMenuXP
Reference
Returns or sets the key mask of a menu item's shortcut.
Syntax
object.KeyMask(menuID) [= value]
The KeyMask property syntax has these parts:
| Part |
Description |
| object |
An object expression that evaluates to a SmartMenuList object. |
| menuID |
A numeric expression that evaluates to a menu item. |
| value |
A numeric expression that evaluates to the key mask of the
shortcut. |
Remarks
Menu items can have a shortcut which is a combination of a ShiftConstant
flag and a KeyCodeConstant value. Shortcuts are displayed to the right
of the menu window and the menu item can be selected by just typing its
shortcut. An example of a shortcut is ALT+Q for the menu item
"Exit".
Key masks are created as a combination of the
following values:
| Constant |
Value |
Description |
| vbShiftMask |
1 |
SHIFT key bit mask. |
| VbCtrlMask |
2 |
CTRL key bit mask. |
| VbAltMask |
4 |
ALT key bit mask |
.Add
"keyFile", , , "E&xit", , vbAltMask , vbKeyQ
The key mask for the example above would be vbAltMask.
|