XForms: Questions on fl_do_forms()

Fung Wai Keung (wkfung@mae.cuhk.edu.hk)
Wed, 22 Apr 1998 11:54:28 +0800 (HKT)

# To subscribers of the xforms list from Fung Wai Keung <wkfung@mae.cuhk.edu.hk> :

Hi,

I'm new to Xforms. I have a question about the API fl_do_forms(). The
fl_do_forms() API can emulate some kind of infinite loop for GUI event checking
and check the whole form once for each call, ie. I can make the infinite loop
artificially with an infinite while loop as

FL_FORM *form
FL_OBJECT *but, *yes;

// Initialization, create form, display form
while ((but = fl_do_forms() != yes);

fl_hide_form(form);

or make fl_do_forms() to handle the infinite loop by itself. I'm curious which
way should adopt. If fl_do_forms() can handle event once it is called, what is
the difference between it and fl_check_forms()?

Thanks in advance.

Regards,
Wai Keung, Fung

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