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 › Managing two windows in a single program
Page Index Toggle Pages: 1
Managing two windows in a single program (Read 718 times)
Managing two windows in a single program
Mar 13th, 2008, 2:22pm
 
Hi,

Is it possible to have two (or three) different windows managed by the same program? E.g. I want to have a palette of buttons which could be separated from the main sketch. If it's not possible to manage various windows in one program, I suppose I'd need several programs and have them communicating with OSC ; or is there another protocol to share information between the programs?

While I'm at it, is it possible to resize a sketch after it has been instantiated? (e.g. after the setup() function has been called).

Thanks,
Jean-Baptiste
Re: Managing two windows in a single program
Reply #1 - Mar 15th, 2008, 11:10am
 
perhaps http://www.mostpixelsever.com/ would help?

it's a framework to create a client-server solution to what you want, although you'd have to have 2 programs running, as it works by syncing them through a network (but presumably could be done locally too)
Re: Managing two windows in a single program
Reply #2 - Mar 15th, 2008, 2:47pm
 
you can create 'normal' java application that holds several PApplets / several windows. You will have to leave the PDE editor for this. if you'll search the "integration" section of this forum you'll find an eclipse project i posted that does exactly that (2 windows with communication PApplets).
Same for the resize thing, just search the forum, it has been answered many times.
Re: Managing two windows in a single program
Reply #3 - Mar 18th, 2008, 12:53pm
 
You might want to have a look at this that I've been making too;

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Exhibition;action=display;num=1205839279

it's really about reflective programming, but will open 2 processing windows, coded in the PDE.
Re: Managing two windows in a single program
Reply #4 - Mar 19th, 2008, 3:47pm
 
many thanks

JB
Page Index Toggle Pages: 1