I am trying to have my plugin resizable. My requirements seem modest:
- Give the user the possibility to resize my plugin by dragging
- impose a fixed ratio, mininmal and maximal dimensions
- work reliable with win10 & mac as VST3 and AU on the usual hosts
My question is not about how to handle the layout and drawing, my question is on setting it up such that my plugin editor receives the information about resize and allows constraining it, without ugly black borders between my plugin and the window containing it.
I thought this is simple problem … however, it turned out to be tough. I also found dozens of posts in the forum where people reported similar problems again and again. Also the AudioPluginDemo suffers from all kind of resize issues, eg with VST3 on WIN10 in Ableton: you can resize the outer frame such that you get ugly black border, or you shrink the outer window and “cut” the plugin area short, because it does not get the resize events.
Obviously I am doing something wrong, and obviously there must be a solution for this … so can anyone help me?
Many thanks in advance!