I haven’t tracked to the bottom of this, but I’ve been having a problem enabling a tab within a tab.
In the Parent tab’s visibilityChanged() routine, I call setEnabled(false),if the tab is no longer visible. Similarly, I call setEnabled(true), when the tab becomes visible again. When I setEnabled(true), the components on the child tab component show, but are all disabled.
If, on the other hand, I first do a getCurrentContentComponent() to locate the subtab, set the subtab to be enabled, and then enable the parent tab, the subtab seems to enable properly.
Has anyone else seen this behavior?
As an aside, all this enabling and disabling has come about because each tab has a large number of controls on it, and it used to be that each tab was destroyed when it went out of view (juce 1.28), but now the tabs all constructed and their visibility is controlled by juce. For situations like this, I’d really like to see a “disableComponentWhenNotNeeded” flag added to the addTab() routine, to tell juce that hidden tabs should just be invisible, but also disabled.