Deriving TabComponent


Hi community,

I am trying to derive TabComponent, so that I can get the callback

My problem is that the component does not appear in the parent container, despite I do the same as the regular TabComponent class, this is:

(Parent's ctor)

    addAndMakeVisible (component3 = new OSGTabbedComp());

	component3->setTabBarDepth (30);
	component3->addTab("Uno",Colours::black,NULL, true);

Does anyone have any ideay what could be the problem? As everyone knows, this kind of problems are able to get oneself stuck several hours or days trying to guess what is wrong, wasting precious time :frowning:

Thank you,



Hm, you are adding a NULL component. Try this: addTab("Uno", Colours::black, new Component(), true);