Window resize (aka surface.resizable) not functioning in P2D and P3D modes

Hi all,

On windows, surface.setResizable(true) has no effect whatsoever when the sketch runs in P2D or P3D mode. In the default mode, everything runs as expected.

Are there any known solutions?

thanks! -t

(and here’s a little example below for quick copy-paste-testing purposes)

void setup() {
  size(200, 200, P2D);
  surface.setResizable(true);
}

void draw() {
  background(204);
  line(0, 0, width, height);
  line(width, 0, 0, height); 
}
1 Like

It is resizeable, but the mouse pointer don’t change to the “resize pointer” (arrow thing). And also you have to hit the window just outside the border (or exactly on the border too, I think). Not inside of it. Except on the title bar, there it is just below the top border.

Tested it just now on Windows 10 Pro, 64-bit, in both P2D and P3D mode.

EDIT: Oh, and welcome to the forum! :slight_smile:

3 Likes

Thank you!! Both for your correct answer and for your warm welcome.

1 Like

No problem. You providing a small code snippet to test made all the difference!