Kbase P93727: Value of widget can be changed unexpectedly using mouse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/10/2004 |
|
Status: Unverified
FACT(s) (Environment):
Windows 32 Intel
Windows NT 32 Intel/Windows 2000
SYMPTOM(s):
Value of widget is changed with mouse click
Widget being changed is a radio-set, toggle-box, selection-list or slider
Widget being changed does not have focus
Currently focussed widget has RETURN NO-APPLY statement in ON LEAVE trigger
Value of widget does change on display
INPUT-VALUE and SCREEN-VALUE attributes of widget change
CAUSE:
This is a known limitation in the GUI client.
Due to the way Windows and Progress 4GL handle user interface events, Windows changes the screen value of the widget that is being clicked on before the 4GL LEAVE trigger is processed.
FIX:
Workaround:
- Ensure the variable underlying the problematic widget always holds a valid value by setting the INITIAL value.
- Before the RETURN NO-APPLY statement in the leave trigger(s), redisplay the correct value for that widget. ("DISPLAY <variable/field> WITH FRAME {&FRAME-NAME}")
This will ensure the displayed value of the widget is forced to the correct value.