Consultor Eletrônico



Kbase P91399: END-ERROR event suppress keyboard events in Dialog windows.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/11/2010
Status: Unverified

SYMPTOM(s):

END-ERROR event in parent dialog window suppresses keyboard events in children dialog windows.

Have two dialog windows: Diag1.w and Diag2.w.

On Diag1.w have a sensitive fill-in (or any other widget which can get the focus)

On END-ERROR trigger of the Diag1 runs Diag2.w as below:

ON END-ERROR of frame Dialog-2
DO:
Define Variable ok As Log No-Undo.
Run Diag2.w .
If Not Ok Then
Return No-Apply.
END.

In Diag2.w are defined keyboard event triggers like:

ON Y of frame Dialog-2
DO:
message 'Y' view-as alert-box.
END.

When Diag2.w is started by pressing "ESC" key in Diag1.w, the keyboard event triggers defined in Diag2.w don't fire

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE00108489

FIX:

From Diag1.w END-ERROR trigger indirect run Diag2.w program via a Developer Event defined trigger which runs Diag2.w.

/*-----------------*/
ON END-ERROR of Dialog-frame
DO:
APPLY 'U1' TO SELF.
END.
/*-----------------*/
ON 'U1'of Dialog-frame:
DO:
Define Variable ok As Log No-Undo.
Run Diag2.w (Output ok).
If Not Ok Then
Return No-Apply.
END.
/*-----------------*/