IGUIWindow adding additional element problem
Posted: Wed Jun 18, 2008 3:15 pm
Hi I am new at Irrlicht. I tried to add additional buttons just like the user interface example in the irrlicht source. But I have realized that I can only add elements into small portion of the created window here is my code. the problem is it cannot draw the second button in the window. how can I fix this problem. thanks in advance..
[code]
IGUIWindow* window = env->addWindow(
rect<s32>(100 , 100, 300 , 300),
true, // modal?
L"Test window",env->getRootGUIElement(),100);
env->addButton(rect<s32>(35,35,100,50),
window,
101,
L"Quit",
L"Exits Program");
env->addButton(rect<s32>(35,100,100,50),
window,
102,
L"Restart",
L"Restarts the Program");
[/code]
[code]
IGUIWindow* window = env->addWindow(
rect<s32>(100 , 100, 300 , 300),
true, // modal?
L"Test window",env->getRootGUIElement(),100);
env->addButton(rect<s32>(35,35,100,50),
window,
101,
L"Quit",
L"Exits Program");
env->addButton(rect<s32>(35,100,100,50),
window,
102,
L"Restart",
L"Restarts the Program");
[/code]