Re: XForms: how does fl_show_question() do it ?

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 8 Jul 98 14:30:59 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> [the other] Steve said:
>
> >Your callback routine can set a global flag, and the loop that calls
> >fl_do_forms can exit when the flag is set. That avoids setjmp/longjmp
> >and still lets you use callbacks.
>
> I don't think so. If there are callbacks on all the objects then
> fl_do_forms() *never* returns. The loop that called it never gets to
> check the flag. Or am I being dense ?

No, I believe you have the concept.

In the case we're discussing -- emulating the Goodies -- the "do it"
or "don't do it" buttons have no callbacks -- they just cause
fl_do_forms() to return to its caller, which is what you want, in this
case.

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