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 › frame.setLocation
Page Index Toggle Pages: 1
frame.setLocation (Read 504 times)
frame.setLocation
Dec 3rd, 2009, 2:03am
 
Hello

I have a setup with two monitors and two fullscreen Processing applications. The one on the main monitor (resolution 1080x1024) is just exported with the fullscreen option. The app on the second monitor (resolution 1920x1080) is made undecorated and repositioned with frame.setLocation.  

This all works fine as long as I start the script from the editor.
The problems start when I want to use frame.setLocation in a stand alone application. The Application gets kind of positioned right but the size is cropped to the size of the first monitor. That means it is not in fullscreen.

For me this seems to be some kind of a bug.
Is there anything I can do about that?


This is what I have as code:
Code:

void init(){
frame.removeNotify();
frame.setUndecorated(true);
frame.setLocation(1280, 0);
frame.addNotify();
super.init();
}



so long broenni
Page Index Toggle Pages: 1