StaticText parent problem

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

StaticText parent problem

Post by warui »

Following code dosn't do what it's supposed to.

Code: Select all

IGUIWindow* wnd = env->addWindow(core::rect<s32>(450,47,640,480), false, L"Toolset", 0, 5000);
env->addStaticText(L"X:", core::rect<s32>(10,50,30,65), false, wnd);
It creates window, but the staticText is not created inside it, but on the applications window. It's also doesn't behave like GUI elemnt with a parent, for example, it doesn't move when window is moving. I'm using Irrlicht Engine 0.6
Tomasz Nowakowski
Openoko - www.openoko.pl
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

This is just correct, wnd is interpreted as bool here. Use nv->addStaticText(L"X:", core::rect<s32>(10,50,30,65), false, false, wnd); instead.
Post Reply