Re: XForms: Application problem

Steve Lamont (spl@szechuan.ucsd.edu)
Sat, 22 Nov 97 11:54:48 PST

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

> I have finished a small program in which you enter
> some values into text files and hit a button to perform some
> calculation. When I enter information into the first text box everything
> is OK. It is when I go to the second text box(or even click on the
> background of the form) that the problem occurs. The form shutdown and
> the program stops. Does anyone have any ideas as to what the problem
> could be. I have an older version of Xforms(.87). Andy help is thankful.

Do both of the text boxes have callbacks associated with them? If
not, the fl_do_forms() function will return to the calling function.
It will do this whenever any object is actuated that does not have a
callback function.

Either assign callbacks to *all* of the objects which are interactive
(in other words, anything other than boxes, text objects, and like
passive objects) or simply code

while ( fl_do_forms() )
;

rather than

fl_do_forms();

which is what fdesign emits if you tell it to create a main for you.

Refer to the manual for more details.

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/