Deriving TabComponent


#1

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());

    //[UserPreSize]
	component3->setTabBarDepth (30);
	component3->addTab("Uno",Colours::black,NULL, true);
    //[/UserPreSize]
...

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,

Gabriel


#2

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