We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want a fixed window size, I don't want the maximize button to make the window full screen.
setResizable does nothing. Calling size() every frame breaks sketch.
Answers
https://forum.processing.org/two/discussion/22694/is-there-anyway-to-remove-deactivate-the-minimize-close-and-max-button-from-a-processing-window
Kf
Thanks kfrajer, but that only seems to work with the default renderer, not P2D or P3D.
That works but only with the default renderer.
It errors,
No library found for processing.awt.PSurfaceAWT
No library found for com.sun.aw
Also I couldn't any hooks for the window being resized, like onResize() or something similar. Is there an index of all the built in processing hooks (like void mouseMoved()) i couldn't find such a list in the reference.
Not tested, but try:
surface.setResizable(false);
after calling size. Or try GoTo's first post here: https://forum.processing.org/two/discussion/3013/are-undecorated-frames-dead-with-processing-2-x
The reference only documents the basic functions that can be accessed by the common users of the Processing library, keeping in mind Processing is directed to a public with less experience in Programming with the concept to engage them into programming. It is my understanding they don't intend to document all the built-in functionalities. These other functions are found mostly by checking previous posts or browsing the source code available in GitHub.
Kf
with size() being called in settings(),
surface.setResizable(false); does nothing in setup(); It does nullpointerexception in settings() after size();
frame.setResizable(false) also doesn't work.
this code from your link doesn't work because isGL doesn't work in processing3, also size needs to be in settings()
Still really need a way to keep from changing window size for P3D renderer..
My hack was to check if height or width have changed at the start of draw() and if so, change the size back.