vstgui tutorial project on OS X gui not showing

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

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?

Post

Works in Windows though! I read up on the constructor rect issue. I guess I have to compile with sdk 10.6 for it to work on OS X.

Post

Without you adding the getRect, even some hosts on windows won't show the gui properly!

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);
	};
...
...
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.

Post

Wow thanks so much works perfectly on OS X as well with 10.10 sdk and live 9.

Post

Uh, I'm so happy to be able to help! :)

Post Reply

Return to “DSP and Plugin Development”