vstgui tutorial project on OS X gui not showing
-
- KVRist
- Topic Starter
- 58 posts since 6 Sep, 2015
Everything compiles perfectly in the VSTGUI4 example/tutorial but the plugin window still won't appear in ableton live 9. Any ideas how to fix this in regards to that tutorial project?
- KVRAF
- 3008 posts since 17 Apr, 2010 from Croatia
Without you adding the getRect, even some hosts on windows won't show the gui properly!
To your gui class (header) just add:
Sometimes I dislike splitting the body between header and cpp file, you know. May not be a good habit, but it simplifies certain things to me.
To your gui class (header) just add:
Code: Select all
class YourGui : public AEffGUIEditor, public CControlListener
{
public:
...
...
virtual bool getRect(ERect** ppRect)
{
if (frame)
{
CRect rc;
frame->getSize(rc);
rect.left = (VstInt16)rc.left;
rect.right = (VstInt16)rc.right;
rect.top = (VstInt16)rc.top;
rect.bottom = (VstInt16)rc.bottom;
}
return AEffGUIEditor::getRect(ppRect);
};
...
...
- KVRAF
- 3008 posts since 17 Apr, 2010 from Croatia