ERROR Load Layout !

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

maitvn
Just popping in
Just popping in
Posts: 8
Joined: Fri Aug 01, 2008 03:54
Location: Sun system

ERROR Load Layout !

Postby maitvn » Mon Aug 11, 2008 02:36

[code]
CEGUI::Window *popup = CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"MenupopupV1.layout");
CEGUI::Window *menu= win->getWindow((CEGUI::utf8*)"Root/Popup");
myRoot->addChildWindow(menu);
menu->hide();

/* Load messagebox */

Line Error : CEGUI::Window *messagebox = win->loadWindowLayout((CEGUI::utf8*)"test.layout");
CEGUI::Window *Messbox = win->getWindow((CEGUI::utf8*)"test" );
myRoot->addChildWindow(Messbox);
Messbox->hide();
[\code]

If i load only one layout (test.lyout or root/Popup) , it'll work normal .
But if i load 2 file layout together , it'll get a error !!

Why ??? Please help me soon !
Thanks for reading !
Never give up ...
..........................

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Aug 11, 2008 06:47

Hi,

the error will be written in the CEGUI.log file. My suggestion is that you have duplicate window names amongst both files. Within an entire cegui instance, each window must have a unique name.

HTH.
Check out my released snake game using Cegui!

maitvn
Just popping in
Just popping in
Posts: 8
Joined: Fri Aug 01, 2008 03:54
Location: Sun system

Postby maitvn » Wed Aug 13, 2008 01:51

Thank you !

I repaired according to you , then Program run well !

Thanks again . :lol:
Never give up ...

..........................


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests