Consultor Eletrônico



Kbase P33666: Focus does not go back to previous window when closing a window, SET-WAIT-STATE()
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/05/2010
Status: Verified

SYMPTOM(s):

Focus does not go back to previous window when closing a window, SET-WAIT-STATE()

Progress loses focus when closing a window

Focus does not go back to previous focused window

FACT(s) (Environment):

Previous window is not explicitly defined as Parent window
Window made with normal template
Window run not persistently
Flow of window run is sequential with nested WAIT-FOR's
Windows
Progress 9.1B
OpenEdge Category: Language (4GL/ABL)

CAUSE:

The statement

SESSION:SET-WAIT-STATE("").
was executed after the APPLY "CLOSE" TO THIS-PROCEDURE.

FIX:

Call SESSION:SET-WAIT-STATE("") before doing the APPLY "CLOSE", or do it before running disable_UI in the CLOSE trigger of THIS-PROCEDURE (need to add a DO block).