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 › processing apps withouth borders
Page Index Toggle Pages: 1
processing apps withouth borders (Read 867 times)
processing apps withouth borders
Jul 22nd, 2009, 8:54am
 
Is it possible to have the processing window without  the border where appears the name of the sketch? is that possible?

how can i do that?

thanks

Mateo
Re: processing apps withouth borders
Reply #1 - Jul 22nd, 2009, 9:33am
 
Re: processing apps withouth borders
Reply #2 - Jul 23rd, 2009, 7:12am
 
hi ive tried the code but it just work with 2d sketches, when i try to use  it with 3d sketches (with opengl) the windows doesnt draw anything. It stays grey, why is that? is there any way of making that code work with opengl? if not, is there any other way of make a window without borders in opengl?


thanks in advance


M.
Re: processing apps withouth borders
Reply #3 - Jul 23rd, 2009, 9:31am
 
Ah!
OK, I have a footnote in my file of Processing tricks: "Can put this code in init()"...
So try:
Code:

void init()
{
frame.removeNotify();
frame.setUndecorated(true);
frame.addNotify();
super.init();
}

before setup() for example.
Indeed, putting the lines after size() in setup() crashes an OpenGL sketch, using the function above (no need to call it, it is called automatically by Processing) solves the issue.
Re: processing apps withouth borders
Reply #4 - Jul 25th, 2009, 12:44pm
 
hi, it works fine, but how can i move the window in the screen? is there is a command to tell the processing window to appear in a specific position?

thanks
Re: processing apps withouth borders
Reply #5 - Jul 26th, 2009, 12:52am
 
You can use:
frame.setLocation(150, 150);
You have to put it in the setup() part.

Moving the window: you can use mouseDragged() and setLocation(). Not sure if it will work well in OpenGL.
Page Index Toggle Pages: 1