Re: triggering vs. calling callback

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 22 Apr 97 09:31:42 PDT

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

> I wonder what the difference is between 'fl_trigger_object()'
> and 'fl_call_object_callback()'?

The main difference between the two is that if you call
fl_trigger_object() and there is no callback for the object,
fl_do_forms() will exit to the calling program, returning a pointer to
FL_OBJECT in the standard manner. fl_call_object_callback() will
not. If a callback function is registered, both functions have the
same effect; that is, the callback function is called as if a user
action triggered it.

At least that's what the manual says. I've frankly never used either
of them.

> When should I use which function?

It would depend upon which behavior your wanted to occur.

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/xforms-archive/