| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |
Arguments: ocx-widget-window buttons key-code
Applies to the Windows platform only.
This is a tentative function because we are not sure how keypress events should properly be intercepted from OCX controls, which normally define their own complete keyboard event handling. This functionality may change in the future.
This generic function will be called when a keypress event occurs
while an ocx-widget-window
has the keyboard focus. An application could add methods to intercept
the keypress from the control's usual handler. True should be
returned to suppress the control's own built-in handling of the
keypress (if any), or nil
to allow it.
The default method does nothing and returns nil
. A method for html-widget-pane
calls virtual-key-down with the same arguments that
were passed to handle-ocx-shortcut; this allows keystrokes in
the html-widget-for-browser
pane of an html-browser
dialog (for example) to invoke the dialog's toolbar buttons. You may
find it useful to define a similar handle-ocx-shortcut method for ocx-widget
classes that you define.
See def-cg-ocx-control.
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |