FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

handle-ocx-shortcut

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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version