Code: Select all
TabControl* tc = CreateTabControl(parentWindow);
tc->SetSize(1.0f, 1.0f);
tc->SetPosition(0.0f, 0.0f);
Window* t1 = CreateDefaultWindow();
Window* t2 = CreateDefaultWindow();
t1->setText("tab1");
t2->setText("tab2");
tc->addTab(t1);
tc->addTab(t2);
This doesn't work. tc->getTabCount() returns 2, as it should. And the background of where the tab control should be is black instead of the background the rest of the windows have, so it must be rendering something. But I don't see any tab buttons. Am I skipping a step? Or is there some deeper issue?