Kbase P85003: Fill-in highlight issue with Dialog-box called from a persistent Window
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/10/2004 |
|
Status: Unverified
FACT(s) (Environment):
Windows
SYMPTOM(s):
Progress does not highlight the contents of a decimal fill-in widget
Using the PRO*Tools Run Procedure Utility to execute a Window in persistent mode
Calling a Dialog-box from the Window that is run persistently from ProTools
Callee Dialog-box contains a decimal fill-in widget (FILL-IN-1)
Dialog's main-block section has an APPLY "ENTRY":U TO FILL-IN-1 statement right after RUN enable_UI
The decimal fill-in value is successfully highlighted by Progress when the caller Window is executed in a non-persistent form from ProTools
CAUSE:
This is a known issue being investigated by Development
FIX:
To get around this issue, change the Dialog's main-block code so that it applies "ENTRY" to the Dialog's parent widget right after applying "ENTRY" to the decimal fill-in. The modified code looks like as follows:
MAIN-BLOCK:
DO ON ERROR UNDO MAIN-BLOCK, LEAVE MAIN-BLOCK
ON END-KEY UNDO MAIN-BLOCK, LEAVE MAIN-BLOCK:
RUN enable_UI.
APPLY "ENTRY":U TO FILL-IN-1.
/*** This is the workaround ***/
DEFINE VARIABLE vhParent AS HANDLE NO-UNDO.
vhParent = FRAME {&FRAME-NAME}:PARENT.
APPLY "ENTRY":U TO vhParent.
/*** End of workaround ***/
WAIT-FOR GO OF FRAME {&FRAME-NAME}.
END.
RUN disable_UI.