I am having trouble with the basics of creating a toolbar…What are the very basic elements that I need to have a toolbar displayed horizontally within my component that I create? I’ve studied the Widgets demo source code and taken a look at the api documentation, but the basics of creating a toolbar have still eluded me.
What I have within my component cpp is:
addAndMakeVisible (toolbar = new Toolbar());
And within my header file I have:
within the private member declaration.
This allows the program to compile but at runtime the toolbar doesn’t appear. I know that you have to add factory default items for the icons, but right now I would just like the toolbar to basically appear. What are the other minimal elements that I need to specify in order to have a toolbar appear at the top of a component and run horizontally across?
Any help greatly appreciated. Thank you in advance.