I have 2 windows that I’m creating with the frames example of the controlP5 library. One works as the control window for sliders etc and the other the main sketch window where the artwork gets displayed.
I have 2 monitors. Using fullScreen(2) runs the main sketch window as fullscreen.
However, the control window is much smaller say size(400,800);
I don’t want the title bar and close/minimize buttons at the top.
Has setUndecorated() been completely removed in processing 3?
If so how may I achieve this.
I don’t want to make this control Window full screen. I wish it to remain at size(400,800).
Would really appreciate if someone could point me in the right direction as have been struggling for a while on this. Thanks!
You can get to the old frame variable and the setUndecorated() function, but you have to go through the surface variable and it depends on which renderer you’re using. Here’s an example for the default renderer:
Perfect!! It worked. So basically the fullScreen() removes the ‘frame decoration’ and setSize() and setLocation(); when used together can help you set the layout. Thanks Kevin… your example helped me understand this!
@GoToLoop Thanks! Am going through the old forum links as well. However, this one does the trick for immediate gratification
No, I agree with you, and your first answer - overriding initSurface() - is the way I do this. Depending on the renderer and the OS, fullScreen() can set flags on the window that you don’t want and can cause problems. The slightly longer-winded way you posted first is a safer bet. I only use the OpenGL renderers in PraxisLIVE. Interesting these return the window and not the canvas from getNative() so I override initSurface like (where wHints is my own config object) -