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.
Page Index Toggle Pages: 1
stop (Read 419 times)
stop
May 28th, 2008, 10:45pm
 
Hello !
I use this to trigger things when the user closes the program :

public void stop() {
}

It doesn't seem to work when I create a .exe file. Is there a way to solve this ?
I guess another solution would be to disable the "close" button and force the user to press the escape key to quit the program, but I don't know how to do this either.

While I'm at it, another problem I often get on some computers is when a program starts in RBG and with no anti-aliasing (while there is colorMode(HSB) and smooth() in the setup). It only happens sometimes... Does anybody have an idea of why ?
Re: stop
Reply #1 - May 29th, 2008, 5:53pm
 
its a bit of quirk that, I've found that doing some sort of drawing call before hand will usually sort it out.
Page Index Toggle Pages: 1