[SOLVED] Layer 'Back' is not found ???

compvis

10-03-2009 05:37:59

hi,

I load my window which created by LayoutEditor. Window Xml file likes:

<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="Window" skin="Window" position="448 144 536 344" layer="Back" name="Win"/>
</MyGUI>


Then, i compile and run my app. There is an exception occurs:

12:37:23 | General | Error | Gui : '' not found | .\src\MyGUI_Gui.cpp | 272
12:37:23 | General | Info | Gui successfully initialized | .\src\MyGUI_Gui.cpp | 91
12:37:23 | General | Warning | Skin 'Window' not found, set Default | .\src\MyGUI_SkinManager.cpp | 87
12:37:23 | General | Critical | Layer 'Back' is not found | .\src\MyGUI_LayerManager.cpp | 149

I don't know what i was wrong !

Thanks,

my.name

10-03-2009 17:44:23

12:37:23 | General | Error | Gui : '' not found | .\src\MyGUI_Gui.cpp | 272

show initialise code

compvis

11-03-2009 02:10:54

12:37:23 | General | Error | Gui : '' not found | .\src\MyGUI_Gui.cpp | 272

show initialise code



thanks, my code is:



RenderWindow* mRender;
..............
mGui = new MyGUI::Gui();
mGui->initialise(mRender,"");
mGui->load("Win.layout");

my.name

11-03-2009 10:24:56

mGui->initialise(mRender,"");
12:37:23 | General | Error | Gui : '' not found | .\src\MyGUI_Gui.cpp | 272

--------------------------

mGui->initialise(mRender,"core.xml");