Click or drag to resize

Accelerator.AddKey Method

X#
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
Request Example View Source

Parameters

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 Tip
After the first use of a dynamic accelerator object, no more accelerators can be added..
See Also