Including layouts into other layouts

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Nudel
Just popping in
Just popping in
Posts: 5
Joined: Fri Jul 14, 2006 13:56

Including layouts into other layouts

Postby Nudel » 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:

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?

Return to “Help”

Who is online

Users browsing this forum: No registered users and 20 guests