Page 1 of 1

ERROR Load Layout !

Posted: Mon Aug 11, 2008 02:36
by maitvn
[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 !

Posted: Mon Aug 11, 2008 06:47
by scriptkid
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.

Posted: Wed Aug 13, 2008 01:51
by maitvn
Thank you !

I repaired according to you , then Program run well !

Thanks again . :lol: