can someone please have a look at this and tell me what I’m doing is right or wrong?
Let’s say I want to have the Juce Demo Examples such that a demo is persistent, in a way that e.g. the slider in the Widgets demo keep their position when switching back and forth between the demos.
So instead of
return new WidgetsDemo();
I create an instance of WidgetsDemo in the ContentComp class, and addAndMakeVisible()
void ContentComp::showDemo (Component* demoComp)
void ContentComp::showDemo_test (Component* demoComp)
currentDemo = demoComp;
And, instead of declaring
I can use this?
It works but I’m not sure if this the right way.
Some comments are highly appreciated