We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › refreshing screen in the middle of a call
Page Index Toggle Pages: 1
refreshing screen in the middle of a call (Read 357 times)
refreshing screen in the middle of a call
Jul 22nd, 2006, 12:24am
 
hi,
I'm having trouble with things like the following:


void mousePressed() {
 text("warning: this might take a while",200,200);
 redraw();
 timeConsumingCalculations();
}


it seems like the screen doesn't get refreshed until after timeConsumingCalculations() is called, which defeats the purpose of putting a warning message on the screen. In general, is there a way to say "show the results of this graphics command right now before you execute another line"?

thanks!
Page Index Toggle Pages: 1