TabControl and TabPane
Posted: Tue Jul 19, 2005 19:05
Howdy. So I'm trying to get the Tab widget working in my app, but having trouble getting widgets to display *in* the TabPanes.
I'm under the assumption I should:
1) Create a TabControl
2) Create TabPanes, calling TabControl->addTab()
3) Create widgets and add them to each TabPane by TabPane->addChildWindow()
The TabControl and TabPanes are being displayed okay, but the widgets in each tab are not. Am I missing something?
Second Question:
The TabControl->addTab() method takes in a Window*, not a TabPane*. Is there a reason for that? Can a TabControl really accept any type of Window?
Thanks for any tips!
I'm under the assumption I should:
1) Create a TabControl
2) Create TabPanes, calling TabControl->addTab()
3) Create widgets and add them to each TabPane by TabPane->addChildWindow()
The TabControl and TabPanes are being displayed okay, but the widgets in each tab are not. Am I missing something?
Second Question:
The TabControl->addTab() method takes in a Window*, not a TabPane*. Is there a reason for that? Can a TabControl really accept any type of Window?
Thanks for any tips!