Including layouts into other layouts
Posted: Fri Aug 11, 2006 11:01
Is it possible, to include a layout into another layout inside the xml file? Ive got a Tab Control and id like to save windows inside a tab in another xml file. At the moment, i include these windows in c++ with this code:
Is this somehow possible without using c++ code?
Code: Select all
CEGUI::Window* Menu = CEGUI::WindowManager::getSingleton().loadWindowLayout("Database.xml");
CEGUI::Window* page1 = CEGUI::WindowManager::getSingleton().loadWindowLayout("page1.xml");
CEGUI::TabControl* tab = (CEGUI::TabControl*)Menu->getChild("Database/Tabs");
tab->getTabContents("Database/Tabs/Page1")->addChildWindow(page1);
Is this somehow possible without using c++ code?