Basic Question: Switching between Components in main window


Hi all:

I am planning an upcoming plugin, and I would like to switch between different sets of controls in the same window. I would like to have a consistent “navigation bar,” with buttons (just plain words in this case) that allow the user to switch between different views.

What do I need to do to get this working? Code or pseudo-code welcome, pointers to other threads are great, anything helps.


Sean Costello


Put the controls inside components, and make those outer components visible/invisible according to the mode you’re in. You could probably build a framework with the jucer that will do that.


I’ve never done it but I would have guessed that a TabbedComponent with a custom LookAndFeel would be another way.