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 › Making a resizeable standalone application
Page Index Toggle Pages: 1
Making a resizeable standalone application (Read 1014 times)
Making a resizeable standalone application
Jun 9th, 2006, 9:57pm
 
Is there a way to make a standalone application with Processing that has a resizeable window?

(Although I'd prefer making an applet, I am currently stuck with a standalone application since I didn't find out how to use Japanese characters in an applet. See my other post about Japanese characters.)
Re: Making a resizeable standalone application
Reply #1 - Jun 9th, 2006, 10:24pm
 
boolean resizing = false;
void mouseDragged()
{
 if(!resizing && (mouseX > width-20 || mouseY > height-20)) resizing = true;
 if(resizing){
   size(mouseX+13,mouseY+37);
   frame.setSize(width,height);
 }
}

click and drag in the bottom right corner
Re: Making a resizeable standalone application
Reply #2 - Jun 10th, 2006, 10:19am
 
Thanks, seltar.

It's not quite what I wanted but it's a start. I'd like the application window to behave normally, i.e. peoble should be able to drag it's frame, make it full screen etc.
Page Index Toggle Pages: 1