|
求助:CEGUI中TabControl用法
有没有谁用过cegui layout editor0.6.3版本中的tabcontrol控件啊?
在layout editor中编辑好tabcontrol后,在程序中引用,为什么标签栏就消失了?
CEGUI::WindowManager* wndMgr = CEGUI::WindowManager::getSingletonPtr();
CEGUI::String prefix = "TabControlDemo/";
wndMgr->getWindow("Root")->addChildWindow ( wndMgr->loadWindowLayout("mytabcontrol.layout", prefix) );
CEGUI::TabControl* tc = static_cast<CEGUI::TabControl*>(wndMgr->getWindow(prefix+"Root/"));
如图:

 |
|