But it doesn't work on Windows 10.
I know the reason ... it's the window 'snap' feature.
What I don't know is how to get around it. 'get-display-size' is
returning correct values for the screen, but when the windows are
created - or perhaps when they are shown - their size is being
adjusted to leave the 'snapping' areas at the side of the screen
exposed.
If you add to the program
(printf "~a ~a" w h)
(define f3 (new frame% [label "Window 1"] [height h] [width w] [y
0] [x 0]))
(send f3 show #t)
on Win10 you'll see on your console that the width is correct but
the resulting "full screen" window reaches neither the sides nor the
bottom of the screen.
You can turning off window snapping in Settings, but it's a per-user
setting, and although turning it off disables the snap behavior it
doesn't seem to affect the window sizing behavior.
Wondering now if native Windows programs have the same problem.
Have to dust off my C++ and try it with Visual Studio.
George