Accelerator.AddKey Method (Typed) | |
Adds a new accelerator key to the accelerator table
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD AddKey(
nMenuItemId AS DWORD,
xKeyId AS USUAL,
lCtrl AS LOGIC,
lAlt AS LOGIC,
lShift AS LOGIC
) AS USUAL
public virtual Usual AddKey(
uint nMenuItemId,
[DefaultParameterValueAttribute(0, 1)] Usual xKeyId,
[DefaultParameterValueAttribute(false, 0)] bool lCtrl,
[DefaultParameterValueAttribute(false, 0)] bool lAlt,
[DefaultParameterValueAttribute(false, 0)] bool lShift
)
Request Example
View SourceParameters
- 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 VO 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 if successful; otherwise, FALSE.
Remarks Tip |
---|
After the first use of a dynamic accelerator object, no more accelerators can be added..
|
See Also