I have a component added to a TabbedComponent, it has a simple destructor that for now just has one line to show a Dialog window
AlertWindow::showMessageBox (AlertWindow::InfoIcon, T("Info"), T("PanelGui1 destructor called"));
i have a button that deletes currently selected tab like so
TabbedBar *tabsPtr; /* class TabbedBar : public TabbedComponent, public ChangeBroadcaster */ tabsPtr->removeTab (tabsPtr->getCurrentTabIndex());
the window never appears in the destructor, there is nothing additional (this is a VST plug), there are no adiitional threads the TabbedComponent has only this
class TabbedBar : public TabbedComponent,
TabbedBar (const TabbedButtonBar::Orientation orientation) : TabbedComponent (orientation)
void currentTabChanged (const int newCurrentTabIndex, const String &newCurrentTabName);
[/code] in the .h file and this
void TabbedBar::currentTabChanged (const int newCurrentTabIndex, const String &newCurrentTabName)
sendChangeMessage (getCurrentContentComponent ());
[/code] in the .cpp file.
I need to call the destructor and unregister all Listeners from components, otherwise i get crashes after the editor re-opening.
ps. small question, witch colourId is for the textColour on ToggleButton?