Kbase P188611: NETUI: 'CHOOSE' AUTO-END-KEY causes Application to exit
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/27/2011 |
|
Status: Unverified
SYMPTOM(s):
NETUI: 'CHOOSE' AUTO-END-KEY causes Application to exit
'CHOOSE' AUTO-END-KEY calls System.Windows.Forms.Application:exit() method
Programmatically applying 'CHOOSE' to an AUTO-END-KEY which closes a window causes System.Windows.Forms.Application:Exit() method to fire thus closing the whole application.
Programmatically applying 'CHOOSE' to an AUTO-END-KEY which applies 'window-close' to close its own window fires the System.Windows.Forms.Application:Exit() method causing the whole application to close.
FACT(s) (Environment):
Windows
OpenEdge 10.2B04
CAUSE:
Bug# OE00207397
CAUSE:
OpenEdge is not correctly processing the choose event of the AUTO-ENDKEY button. In this specific application context, OpenEdge is erroneously calling the Application:Exit() method and causing the whole application to close.
FIX:
None at this time. Possible workaround:
1. Set the AUTO-END-KEY attribute of the button to FALSE.
2. Add a 'RETURN NO-APPLY.' statement to the trigger code of the offending AUTO-END-KEY button:
DO:
apply 'window-close' to {&WINDOW-NAME}.
RETURN NO-APPLY.
END.
3. Set the UseDotNet preprocessor in the procedure Launching the application window 0.