Re: XForms: Drawing an object, within a callback

Stephen Langer (
Wed, 5 Nov 1997 09:15:15 -0500

To subscribers of the xforms list from "Stephen Langer" <> :

> [ plain text
> Encoded with "quoted-printable" ] :
To subscribers of the xforms list from "Orn E. Hansen"
<> :
> >
> I was thinking in the lines of a function, that would realize the
> object. I have a text_object, that I use to display messages and shows
> the progress of program while it is within a loop... thus not giving
> control to XForms. I had tried calling 'fl_draw_object_label', but
> the label only was visual after control was return to XForms.

Perhaps you just need to call XFlush(fl_get_display()) after doing your
drawing. If you are doing lots of other computation before returning control
to XForms, the X server may be behind on processing your requests. I think I
had the same problem you described -- using a browser to display the progress
of a calculation, and not seeing the new text until the calculation was done.
Calling XFlush() after writing each new line to the browser solved the

-- Steve

-- EMail:                    Phone: (301) 975-5423 --
-- WWW:    Fax:   (301) 990-4127 --
-- Mail: Building 820 Room 365; NIST; Gaithersburg, Md          20899-0001 --
To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: