thank you! Here's how I did it, in case it might be useful for others that want to implement the resizableCorner in their plugin:
1. In editor
a. In constructor (AT THE END since components added last are shown on top of previous ones), Add resizableCorner and resize limits, like this:
addAndMakeVisible (resizer = new ResizableCornerComponent (this, &resizeLimits));
resizeLimits.setSizeLimits (150, 150, 800, 300);
setSize (ownerFilter->lastUIWidth, ownerFilter->lastUIHeight);
b. Add resized() method:
void AudioProcessorEditor::resized() {
resizer->setBounds (getWidth() - 16, getHeight() - 16, 16, 16);
getProcessor()->lastUIWidth = getWidth();
getProcessor()->lastUIHeight = getHeight();
}
2. In processor
a. Add memory for width and height in .h
int lastUIWidth, lastUIHeight;
b. Set up their default values in the constructor, e.g.
lastUIWidth = 400;
lastUIHeight = 200;
c. Add them to getStateInformation()
xml.setAttribute ("uiWidth", lastUIWidth);
xml.setAttribute ("uiHeight", lastUIHeight);
d. add them to setStateInformation()
lastUIWidth = xmlState->getIntAttribute ("uiWidth", lastUIWidth);
lastUIHeight = xmlState->getIntAttribute ("uiHeight", lastUIHeight);