XForms: Problems with synchronos processing

Marisa Giancarla (marisa@andromedia.com)
Thu, 11 Sep 1997 17:49:02 -0700 (PDT)

To subscribers of the xforms list from Marisa Giancarla <marisa@andromedia.com> :

Hi, I am working on my Xforms based Newton connectivity
package, and I am not sure how to get the xforms library to do what I
want. I don't want to spawn a subtask, but I need to be able to update
the displayed form before returning to the main loop.

To be more explicit, when the user clicks on the "Print"
button it is going to go away and try to send the apropriate command
to the newton, download the printjob(s) from the outbox, and pass them
on to the system spooler. During all of this the UI to the program
will be "hung" until it completes or the connection times out, which
is how I want it.

The default of leaving the button while it is away handling
the callback is exactly what I want, however I want to be able to
update certain elements on the form in this routine and have them be
displayed right away, not when the original callback finishes.

In one case I was adding strings to a browser object and even
though I call fl_redraw_object() after each string is added, they
don't show up until the initial function completes.

In another case I was trying to change an objects label, and
roughly the same thing happens - the changes aren't visible until the
initial callback ends. When I tried following the
fl_set_object_label() calls with fl_redraw_form() the form would start
to display, get part-way through redrawing, then hang till the initial
callback finished at which time it would finish redrawing the screen.

Isn't there any function I can call that says "update this
object in the display _now_" or in a worst-case, refresh the entire
form completely before returning from the function?

Marisa
_________________________________________________
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/