XForms: Redraw problem

Matthias Rarey (Matthias.Rarey@gmd.de)
Tue, 7 Apr 1998 17:37:22 +0200 (MET DST)

# To subscribers of the xforms list from Matthias Rarey <Matthias.Rarey@gmd.de> :

Hi all,

I have a problem with a redraw. I use a box which indicates the status of
an algorithm by its color. A simple routine changes the color and should
redraw the box:

void set_idle_display( int mode )
{ printf(" #### Idle mode: %d\n", mode);
if( mode == MODE_IDLE )
fl_set_object_color(gui_main->b_status, FL_GREEN, FL_BLACK);
if( mode == MODE_LOAD )
fl_set_object_color(gui_main->b_status, FL_YELLOW, FL_BLACK);
if( mode == MODE_REDRAW )
fl_set_object_color(gui_main->b_status, FL_RED, FL_BLACK);
fl_redraw_object( gui_main->b_status);
}

When I execute my program, I see the text output (line 2) but the
color of the box doesn't change (another possibility is that the
first color change is delayed such that the colors change very
quickly).

Is there something which can prevent an object to be redrawn? Or is
there a way to let the program halt until the object is redrawn, some-
thing like an immediate redraw?

Thanks for any help,
Matthias

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/