FORCEKEYDISPATCH Message
Description
The FORCEKEYDISPATCH message will force the OpenInsight Presentation Server to handle an individual keystroke regardless of the OCX translation.
Syntax
retval = Send_Message(oleControl, "FORCEKEYDISPATCH", keystroke, bValue)
Parameters
The function has the following parameters:
Parameter | Description | |
---|---|---|
oleControl | The fully qualified control identifier for the OLE/OCX control. | |
keystroke | The virtual key code to suppress | |
bValue | If true then the keystroke will not be suppressed, if false then the keystroke will be suppressed. |
Returns
The previous bValue of the FORCEKEYDISPATCH property for the keystroke within the control.
See Also
NOACCELTRANSLATION property, SUPPRESSKEYTRANSLATE message Version Introduced in OpenInsight version 8.0.5.
Example
* This example will force the Presentation Server to handle the ENTER key, as well as the OCX. equ VK_RETURN$ to 13 call Send_Message( oleControl, "FORCEKEYDISPATCH", VK_RETURN$, TRUE$)