Page 1 of 1

how can I solve this "createWindow"prolem

Posted: Fri Jul 21, 2006 13:18
by ivy_nameless
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...

Posted: Fri Jul 21, 2006 14:01
by scriptkid
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!

Posted: Sun Jul 23, 2006 05:37
by ivy_nameless
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.