I got to poking around the Juce VST demo, because I like using eXT to test juce vst ideas (drag and drop .dll’s makes it really nice)… anyway, the window size is wrong… and I guess this was reported in other apps outside of Tracktion.
Here’s the fix… look for the ‘else if (opCode == effEditGetRect)’ bit in JuceVstMain.cpp… and replace it with this chunk.
[code] else if (opCode == effEditGetRect)
{
if (editorComp != 0)
{
ERect** rect;
rect = (ERect**)ptr;
editorSize.left = 0;
editorSize.top = 0;
editorSize.right = editorComp->getWidth();
editorSize.bottom = editorComp->getHeight();
*rect = &editorSize;
return (long) &editorSize;
}
else
{
return 0;
}
}[/code]
The problem: the old code never put the address to editorSize inside the dispatcher ptr. Seems like most apps need the ptr.
I’ve tested this in eXT, AudioMulch, FL, and T (of course)… and the windows are properly sized now. The resize isn’t functional yet (outside of T), but I’m working on that…