Re: XForms: fl_finish; why not change it?

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 5 May 98 06:29:21 PDT

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

> > > The primary purpose of fl_finish() is to clean up any modifications
> > > that XForms has made to the server defaults in the case of a callback
> > > activated by a shortcut. The fl_finish() should be more or less
> > > immediately followed by an exit(), since as a side effect the server
> > > connection is also shut down.
>
> You might want to terminate the xforms/X server connection but continue the
> program doing something else.

If this is the case, then the object should probably not have a
callback but should return its FL_OBJECT pointer from fl_do_forms():

while ( fl_do_forms() != quit_button )
;

fl_finish();

/* The rest of your program */

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/