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:

ParameterDescription
oleControlThe fully qualified control identifier for the OLE/OCX control.
keystrokeThe virtual key code to suppress
bValueIf 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 propertySUPPRESSKEYTRANSLATE 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$)
  • No labels