Consultor Eletrônico



Kbase P14543: WINDOW-STATE events appear to have no effect.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/09/2010
Status: Verified

SYMPTOM(s):

WINDOW-STATE events appear to have no effect.

The statements:

hWindow:WINDOW-STATE = WINDOW-MINIMIZED.
hWindow:WINDOW-STATE = WINDOW-MAXIMIZED.
hWindow:WINDOW-STATE = WINDOW-RESTORE.
Form:Close().

appear to have no effect as long as session:Set-wait-state("general"). is in effect.

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x

CAUSE:

An active SESSION:SET-WAIT-STATE() is blocking the processing of the these window events. When a SESSION:SET-WAIT-STATE() is in affect, user input as well as certain types of internal event processing are blocked. For example, when minimizing a window either by setting the WINDOW-STATE attribute or by applying the WINDOW-MINIMIZED event, Windows sends a message to the window. however, since the window is disabled it cannot process this event. The known events that are affected by this are:
WINDOW-MINIMIZED
WINDOW-MAXIMIZED
WINDOW-RESTORED
Form:Close().

FIX:

Cancel the active WAIT-STATE by executing the statement:

SESSION:SET-WAIT-STATE("")

before executing any of the windows events mentioned above.