Variable | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 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-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version