how can I solve this "createWindow"prolem

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

ivy_nameless
Just popping in
Just popping in
Posts: 3
Joined: Sun Mar 12, 2006 15:32

how can I solve this "createWindow"prolem

Postby ivy_nameless » Fri Jul 21, 2006 13:18

when I try to code like this
ScrollablePane* pbar = static_cast<ScrollablePane*>(winMgr.createWindow(" TaharezLook/ScrollablePane", "Progbar1"));
option_wnd->addChildWindow(pbar);

it caught the exceptions:
WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for ' TaharezLook/ScrollablePane' Window objects is not registered with the system.

i dont know why?
thanks for telling...

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 » Fri Jul 21, 2006 14:01

Hello,

welcome :-)

You probably have not loaded a "scheme". I can not see since you only posted a few lines of code. Use something like this:

Code: Select all

// Use the SchemeManager singleton to load in a scheme that registers widgets
    // for TaharezLook.
    SchemeManager::getSingleton().loadScheme("../datafiles/schemes/TaharezLookSkin.scheme");

For details, you can take a look at the sample code, such as "Sample_FirstWindow.cpp" in the samples projects.

Good luck!

ivy_nameless
Just popping in
Just popping in
Posts: 3
Joined: Sun Mar 12, 2006 15:32

Postby ivy_nameless » Sun Jul 23, 2006 05:37

thanks for replying.
i found the mistake.just a balnk surplus before"TaharezlLook"so the systerm cant distinguish the type. :P
haha~a stupid mistake.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests