Accelerator.AddKey Method | |
Adds a new accelerator key to the accelerator table
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD AddKey(
nMenuItemId,
xKeyId,
lCtrl,
lAlt,
lShift
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual AddKey(
Usual nMenuItemId = default,
Usual xKeyId = default,
Usual lCtrl = default,
Usual lAlt = default,
Usual lShift = default
)
Request Example
View SourceParameters
- nMenuItemId (Optional)
- Type: Usual
the accelerator ID which is sent with a MenuComandEvent{} when the accelerator key is pressed. - xKeyId (Optional)
- Type: Usual
can be a numeric VO key-code, which is identical to the windows virtual-key code, or a string with one character which specifies the character-code. - lCtrl (Optional)
- Type: Usual
When TRUE, the CTRL key must be held down when the accelerator key is pressed. - lAlt (Optional)
- Type: Usual
When TRUE, the ALT key must be held down when the accelerator key is pressed. - lShift (Optional)
- Type: Usual
When TRUE, the SHIFT key must be held down when the accelerator key is pressed.
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks Tip |
---|
After the first use of a dynamic accelerator object, no more accelerators can be added..
|
See Also