XForms: recursive call to fl_do_forms() ?

Michael Vogt (Michael.Vogt@informatik.uni-stuttgart.de)
Thu, 17 Jul 1997 13:42:03 +0200

To subscribers of the xforms list from Michael Vogt <Michael.Vogt@informatik.uni-stuttgart.de> :

In a complex XForms application, during some situations, the user is
asked to fill out one specific dialogue form without doing any other
kind of interaction. One nice way to do this is the following:

some_callback_function_of_form_1(...)
{
...

fl_show_form(dialogue);
/* deactivate all other forms */
fl_deactivate_form(other_form_1);
fl_deactivate_form(other_form_2);
...

fl_do_forms();

fl_hide_form(dialogue);
/* activate all other forms */
fl_activate_form(other_form_1);
fl_activate_form(other_form_2);
...
}

main()
{
/* as usual */
create_forms();
...

fl_do_forms();
}

The idea is, that the inner (recursively called) fl_do_forms() will exit
at the moment the user presses an EXIT button of 'dialogue' with no
callback defined. You can imagine even more nested dialogues with a more
intelligent scheme of deactivation and activation of other forms.

QUESTION:

The above application works fine with XForms 0.81. The question is: Is
it an undocumented feature to do recursive calls to fl_do_forms(), is it
save, or should I better don't do this? Does it also work with XForms
0.86 and further versions of XForms?

Michael

-- 
-> Michael Vogt <----------> mailto:vogt@informatik.uni-stuttgart.de <-
-> Universitaet Stuttgart, IPVR                Tel: +49 711 7816-229 <-
-> Breitwiesenstrasse 20-22, D-70565 Stuttgart Fax: +49 711 7816-250 <-
-> http://www.informatik.uni-stuttgart.de/ipvr/bv/personen/vogt.html <-
_________________________________________________
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/