Page 1 of 1

Scalable UI: Maximum Scale

Posted: Tue Feb 19, 2019 2:22 pm
by bx_joscha
Hello,

I guess this is a common problem, so I decided to ask in this board. Is there an easy way in VSTGUI to determine the maximum resolution for a plug-in's editor? For example, if the maximum height would be 2000 and the editor's height is 1200, a zoom factor of 2 should be impossible.

Regards,

Joscha

Re: Scalable UI: Maximum Scale

Posted: Tue Feb 19, 2019 2:35 pm
by Arne Scheffler
No. I think it's the responsibility of the host to prevent the resize of its window to a size bigger than the screen.
But I have never actually checked this myself, if this is the case.

Cheers,
Arne

Re: Scalable UI: Maximum Scale

Posted: Tue Feb 19, 2019 2:40 pm
by bx_joscha
Thank you Arne. Our experiences with this are that all DAWs behave differently. The worst-case for us happens in Pro Tools, where the upper part of the UI gets cut-off, so you would lose the option to change back the zoom factor and you get lost forever.

Re: Scalable UI: Maximum Scale

Posted: Tue Feb 19, 2019 3:40 pm
by Arne Scheffler
As last resort, you can add a context menu where the user can also change the scaling.

Arne