Re: XForms: Displaying a message inside a message

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 17 Mar 99 07:41:28 PST

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

> I am using perl and xforms4perl to create some translation program.
> In a form, i have a button with a callback function. This callback function
> execute a long calculus and i would like to display a message "Wait please"
> or something like that during calculations.
>
> I've tried "fl_set_oneliner" but it did not work.
> I've tried "fl_set_label" with a text object in the form, but the form is
> not updated, even if I use "fl_redraw_form".

I'm not a `perl' programmer so I'm not certain this is the problem but
in standard C XForms you have to return control to the XForms main
loop after you make changes like this in order for them to get flushed
to the server. Use the function

fl_check_forms();

or its `perl' equivalent to cause XForms to send its updates to the
server.

I'm sort of surprised that fl_set_oneliner() didn't do the job. How
did it not work? Did the message not get displayed? Did the oneliner
not pop up at all? Something else?

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/