How to handle window resize on VST
-
- KVRist
- Topic Starter
- 69 posts since 3 Jun, 2011 from Braga, Portugal
Hi,
I'm wondering how can we allow a plugin window to be resized. Does anyone know?
Thx!
Regards,
Nuno
I'm wondering how can we allow a plugin window to be resized. Does anyone know?
Thx!
Regards,
Nuno
Website http://www.imaginando.pt
-
- KVRAF
- 3388 posts since 29 May, 2001 from New York, NY
Yes - you request the size you want.
So you just need to change your UI to the new size, then call sizeWindow() on the AudioEffectX.
There is no guarantee the host is displaying your UI inside a system window, so if you want drag/drop resizing you need to handle it yourself.
So you just need to change your UI to the new size, then call sizeWindow() on the AudioEffectX.
There is no guarantee the host is displaying your UI inside a system window, so if you want drag/drop resizing you need to handle it yourself.
-
- KVRist
- Topic Starter
- 69 posts since 3 Jun, 2011 from Braga, Portugal
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 5821 posts since 8 Sep, 2004 from Paris (France)
Just be aware that it is still not implemented in Cubase on Windows (works on Mac though)...
- KVRer
- 14 posts since 18 Mar, 2017
18 months on it is still the case that Cubase 10 does not support resizing on Windows, but does on Mac. Very strange when Steinberg themselves own the VST 2.4 specification (13 years old now). I understand that Steinberg want to phase out the use of VST 2.4, so probably will never get fixed.
In developing my VidPlayVST plugin I found that all the other major DAWs reliably support resizing. For Cubase in Windows I wrote a bit of code that interrogates the window hierarchy and resizes the plugin wrapper (but no guarantee it will continue to work if Steinberg change their wrapper design).
In developing my VidPlayVST plugin I found that all the other major DAWs reliably support resizing. For Cubase in Windows I wrote a bit of code that interrogates the window hierarchy and resizes the plugin wrapper (but no guarantee it will continue to work if Steinberg change their wrapper design).