We want to derive our own custom controls from the JUCE controls, but need the constructors to take the value tree state as a constructor param in addition to the componentName. Unfortunately, I don’t see any way to specify the parameters using Projucer. when I export my Component view(s), the generated code for the controls that I’ve dropped onto the view only pass the componentName to the constructor, and I don’t see any way to change that.
We’re trying to avoid having to type in extra code for every control we add to set the other information that we want it to have, such as a reference to the APVTS. Is there a way to get Projucer to allow passing constructor parameters to instances of classes derived from the common JUCE controls (slider, combobox, etc)? It works for classes derived directly from Component, but not from the controls, apparently.