Click or drag to resize

Accelerator.AddKey Method (Typed)

X#
Adds a new accelerator key to the accelerator table

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD AddKey(
	nMenuItemId AS DWORD,
	 xKeyId AS USUAL,
	 lCtrl AS LOGIC,
	 lAlt AS LOGIC,
	 lShift AS LOGIC
) AS USUAL
Request Example View Source

Parameters

nMenuItemId
Type: DWord
the accelerator ID which is sent with a MenuComandEvent{} when the accelerator key is pressed.
xKeyId
Type: Usual
can be a numeric X# key-code, which is identical to the windows virtual-key code, or a string with one character which specifies the character-code.
lCtrl
Type: Logic
When TRUE, the CTRL key must be held down when the accelerator key is pressed.
lAlt
Type: Logic
When TRUE, the ALT key must be held down when the accelerator key is pressed.
lShift
Type: Logic
When TRUE, the SHIFT key must be held down when the accelerator key is pressed.

Return Value

Type: Usual
TRUE when successful, FALSE when not, for example because the object not dynamic anymore
Remarks
Tip Tip
After the first use of a dynamic accelerator object, no more accelerators can be added..
See Also