Re: XForms: Application exits normally after processing forms

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 10 Mar 99 08:08:37 PST

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

> fl_show_form(fd_login->login,FL_PLACE_CENTERFREE,FL_FULLBORDER,"Login");
>
> while(1){
> fl_do_forms();
> }
> return 0;
> }
> _________________END_SNIP________________________
>
> This works fine, but seems cludgy. I'm using .88, and have not tried it on .89
> yet. I use Linux 2.0.36 on a Pentium II.

This is correct and documented behavior.

Any object which does not have a callback will cause fl_do_forms() to
exit to the caller with a return value of the object which was
activated. The main reason this is done is so that things like the
goodies can take control of the forms "main loop" and return control
back to their caller when they're done. Without this mechanism there
would be no way of handing control back to the calling routine without
othermore klugy kluges.

spl

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