i’m currently working with the tabbed component, and i’m getting stuck on how to handle multiple tabs, without having to recreate a new content component for the tab every time. i see that in
createPanelComponentForTab (const int tabIndex,
const String& tabName,
bool& componentCanBeDeleted)
there is the out reference componentCanBeDeleted, that i sure have setted to false, but then how can i manage to create a content component if the tab is a new one , while returning a previously created one that is already there in the tabbed component ?
actually i’m working with tab indexes, so i’m not relying on names, but i see there is the need of a function that gets the Component* passing it a tab index, cause you can only get back the currently selected one. but if i want to get a Component tab that isn’t the current ?
also, investigating the demo, i see there is this function in the TabbedComponent inherited example (WidgetsDemo line ~635).
void deletePanelComponent (Component* comp)
{
delete comp;
}
but actually this isn’t called anywhere nor is a virtual method of the TabbedComponent class… mmh maybe someone could clarify myself…