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
full screen (Read 1296 times)
full screen
Jul 1st, 2007, 10:08pm
 
i am using, with windows xp, the full screen application given in the "learning" of version 124 (i guess it is new, i haven't seen it before!). it works fine but i cannot get rid of the line of menus at the bottom. is there a simple way to completely clean the screen? i have tried the code of superduper.org, but i find it quite intricated. i would prefer something simpler.
thanks!
Re: full screen
Reply #1 - Jul 1st, 2007, 11:50pm
 
void FullscreenOn()  
{  
 noCursor();

 frame.dispose();  
 frame.setUndecorated( true );  
 
 GraphicsDevice myGraphicsDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice   ();  
 myGraphicsDevice.setFullScreenWindow( frame );
 if (myGraphicsDevice.isDisplayChangeSupported())  
 {  
   DisplayMode myDisplayMode = new DisplayMode(  
   width, height, 32, DisplayMode.REFRESH_RATE_UNKNOWN );  
   myGraphicsDevice.setDisplayMode( myDisplayMode );  
 }  
}  

 
void FullscreenOff()  
{    
 GraphicsDevice myGraphicsDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice   ();  
 myGraphicsDevice.setFullScreenWindow( null );  
}  


put that in a file and call fullscreenon in setup()
and fullscreenoff in stop()
Page Index Toggle Pages: 1