XForms: Status bar (percentage bar) question...

David Rivera Pericas (drivera@dgtic.caib.es)
Wed, 11 Nov 1998 11:07:22 +0100

# To subscribers of the xforms list from David Rivera Pericas <drivera@dgtic.caib.es> :

Hi.
I'm making a program that uses a lot of CPU time, and I want to have a percentage bar
(you know, a grey bar that goes form 0% to 100%), and my rutine is something like this:

rutine
{
for(x=0;x<100;x++)
{
work_a_lot (); //some seconds with 100% CPU
status_bar.percent=x;
refresh (status_bar); //refresh status bar
}
}

but there is a little problem, the refresh rutine doesn't work, a think that refresh gives the order to
paint o refresh the status bar to the X11 window manager, but it doesn't enought time or CPU to
redraw the status bar.

How do I have to make it?

Thanks...

David

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