Kbase 18162: Apptivity Forcing refresh of widgets on a form (IFC)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/5/1998 |
|
Apptivity Forcing refresh of widgets on a form (IFC)
When changing attributes on widgets in the IFC environment, it is
possible that the changes will only reflect on the screen after
resizing the window. Doing this, you force the main view to refresh
itself and all the contained objects.
eg:
If you have a form with 2 buttons (bt_A, bt_B) that are marked "red"
and "Pink". You might have defined an event on bt_A that executes the
following:
bt_A.setBackgroundColor(Color.red);
bt_B.setBackgroundColor(Color.pink);
Executing this method, you might not see the color changing until you
resize the window. The following change, will update the buttons on
the fly.
bt_A.setBackgroundColor(Color.red);
bt_B.setBackgroundColor(Color.pink);
bt_A.setDirty(true);
bt_B.setDirty(true);
The setDirty method is and IFC method on the IFC View and is defined
as follows:
Registers the View (the button in this case) to be redrawn after
processing the current Event. Passing the parameter true marks the
view as needing a redraw. Passing false will prevent the view from
being redrawn.
The advantage of this setDirty method is that only the defined view is
redrawn and not the complete window.
TBO
08/08/1998