Archive 17/01/2023.

Is it possible to have scalable window in GUI?

slapin

Hi, all!

I have a GUI written in AS. I want to display in window, I can use -w option of player for that.
But I want to scale the window size using window manager, but I’m not allowed to. Any ideas?

KonstantTom

The simplest way is to check the size of the window each frame (‘graphics.width’ and ‘graphics.height’ in AS), and, if it was changed, resize your user interface.
Also you can use UIElement's anchors.