Consultor Eletrônico



Kbase P146773: OCX window is always in the foreground even when it starts a child window
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/22/2009
Status: Unverified

SYMPTOM(s):

OCX window is always in the foreground even when it starts a child window

Launched child window appears behind the parent window with an OCX.

FACT(s) (Environment):

The launched child window is started using the OCX.DblClick event.
The OCX being used is the CodeJock.
Windows
Progress 9.x

CAUSE:

The timing of the OCX events is reclaiming focus after the child window is launched.

FIX:

To resolve the issue add a PROCESS EVENTS statement within the OCX.DblClick event, before the child window is launched. For example:

PROCESS EVENTS.
RUN VALUE(vch-selected-tree-tag) PERSISTENT SET hfunc.
RUN initializeobject IN hfunc.