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

*ocx-classes-for-focus*

Applies to the Windows platform only.

This is a tentative global variable for controlling which descendent window of an ocx-widget-window receives the keyboard focus when CG programmatically moves the keyboard focus to the control. We are not clear on the proper way to do this.

By default, when a CG application programmatically moves the keyboard focus to an ocx-widget-window, CG will find the bottom-most internal descendent window of the control and place the keyboard focus there. With the few OCX controls that we have tested so far, this appears to generally be the proper window to allow the user to do such things as scroll the widget with the keyboard without needing to first click the mouse on the widget.

This variable can contain a list of OCX class names that should override the general rule. The initial value of this variable contains one exception, which is the OCX class name "Internet Explorer_Server", becase we have found that this is the class of the internal descendent window of a WebBrowser control (used by the CG html-widget) to which we need to give the focus to allow the user to scroll with the keyboard without first clicking on the control.

If you know of similar exceptions for additional OCX controls that you define, then you could push the appropriate class name strings onto this global list.


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