This project has moved. For the latest updates, please go here.

window / GUI editor size behavior

Topics: Editor UI, Midi
Jul 26, 2012 at 6:58 PM

A) Is it possible to know when the plugin host window is resized? I would like to resize my editor control window automatically whenever the user resizes the host plugin window.

B) Is it possible to resize the plugin's host window from the plugin itself? i.e. if I have a configuration button which changes the editor control to a specific size, can I trigger the host window to match that size? In REAPER, the user has to manually resize the host window if the plugin editor size is changed from the editor itself.


Thanks for your time!

Jul 27, 2012 at 4:09 AM

A. Yes it's possible but I encountered a lot of plugins that did not trigger the editorSizeChanged event.

B. I solved this and also the point A by polling for editor size at regular intervals instead of waiting for callback. When I detect that plugin has changed size I resize the panel hosting the plugin IDE.

Jul 28, 2012 at 8:16 AM

I remember seeing some lengthy discussions on this on KVR audio...