How To Access GUI via Toolbox in JUCER Project


#1

Hey Guys, Im pretty much a newb here on this forum, I’ve just set up my First Introjucer VST in VS 2010… My question is how do I access the Design view or the actual toolbox, so I can add components to my new vst project … I ran my new VST in reaper and it works… But I want to change the design/layout/color etc…I’ve read through a few tutorials on the wiki page but still im pretty lost… Thanks!!


#2

You can add a GUI Component from the IntroJucer and add it to your PluginEditor component. Something like:

PluginEditor.h:

#include "MyIntroJucerGUIComponent.h"

class MyAudioProcessorEditor : public ...
{
  // ...
  MyIntroJucerGUIComponent myGuiComponent;
  // ...
};

PluginEditor.cpp:

MyAudioProcessorEditor::MyAudioProcessorEditor()
{
  // ...
  addAndMakeVisible(&myGuiComponent);
  // ...
}

void MyAudioProcessorEditor ::resized()
{
  // ...
  myGuiComponent.setBounds(0, 0, getWidth(), getHeight);
  // ...
}

You probably want some connection between the GUI component and your processor, so keeping a pointer to the AudioProcessor which is passed in the GUI component’s constructor (like the AudioProcessorEditor does with ownerFilter) might be a good idea.