Consultor Eletrônico



Kbase P145676: Wrong window gets focus after closing a dialog
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/05/2009
Status: Unverified

SYMPTOM(s):

Wrong window gets focus after closing a dialog

Dialog is called from a window that has no widgets that can receive focus (ie. all are disabled or have NO-FOCUS attribute set)

When dialog is closed, focus moves to another window that does have widgets that can receive focus

FACT(s) (Environment):

Windows
Progress/OpenEdge Product Family

CAUSE:

This is expected behavior.

A window or frame can't directly receive focus; instead it is moved to the foreground when a contained widget receives focus.

The window that should be moved to the foreground does not have any widgets that can receive focus, so another window that does have such widgets is moved to the foreground instead.

FIX:

Ensure the window that should receive focus always has at least one enabled widget.
One way this can be achieved is to ensure fill-ins are set to READ-ONLY instead of being disabled entirely.