Re: XForms: Displaying a message inside a message

Kay Fleetwood (rfleetwood@tecmasters.com)
Wed, 17 Mar 1999 13:36:03 -0600

# To subscribers of the xforms list from Kay Fleetwood <rfleetwood@tecmasters.com> :

>
> Hello,
>
> 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've tried to create an invisible form that is shown at the
beginning of the
> callback function and hiden again at the end of the callback. But,
once again,
> it does not work, showing only the frame of the window, but not the
content.
>
> Now, i don't what to try.
> Could someone help me or tell me what i'm doing wrong ?
>
> System : LINUX RedHat 5.2, Xforms 0.88, Xforms4perl 0.8.4, perl
5.004_04
>
> TIA.
>
> steph

I'm not sure if this is a fix with Perl. I had run into some of the
same problem
and my fix was to insert the following line whenever I wanted the
display updated
immediately (like showing a "Wait a minute" form).

XFlush(fl_get_display());

That's what worked for me. Hope it helps you.

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