Kbase P130619: Changing current-window:sensitive attribute causes a quick overlap by another window
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/23/2008 |
|
Status: Unverified
FACT(s) (Environment):
Windows
Progress 8.x
Progress 9.x
OpenEdge 10.x
SYMPTOM(s):
Changing current-window:sensitive attribute causes a quick overlap by another window
Parent window sensitive is set to false before calling a child window
Child window closes and parent window is quickly overlap by another window
Parent window sensitive is set to true after child call.
CAUSE:
This is expected behavior because the focus of the window can only be applied if SENSITIVE is true.
FIX:
Set sensitive of the window back to TRUE just before it receives the focus but before child window closes.
This can be accomplished by using an input parameter to send the parent window handle by using CURRENT-WINDOW when the child window is called.
RUN c-win2.w (INPUT CURRENT-WINDOW).
Then, at the child window WINDOW-CLOSE trigger use the handle of the window to set SENSITIVE to TRUE before the "APPLY "CLOSE":U TO THIS-PROCEDURE."
hWin1: SENSITIVE = TRUE.
APPLY "CLOSE":U TO THIS-PROCEDURE.
RETURN NO-APPLY.