I need a modalWindow with some GUIthings. My Code see at moment like this:
gui::IGUIWindow* mod1 = guienv->addWindow(core::rect<int>(200,20,500,515),true,0);
// add list box
gui::IGUIListBox* box0 = mod1->Environment->addListBox(core::rect<int>(leftX,23,485,90), 0, 1);
box0->addItem(L"Irrlicht Software Engine [too slow]");
box0->addItem(L"Direct3D 8.1");
box0->addItem(L"OpenGL 1.2");
box0->setSelected(selecteddriver);
But there is only a Big Error because mod1->Environment is protected.
Please Help
CU Phoenix
Probs with modalWindows
Because !
The ListBox is an Element is depend of ModalWindow.
For Example the Coords are relativ of 0,0 of ModalWindow.
With
gui::IGUIListBox* box0 = guienv->addListBox(mod1...
The ListBox appears depend of MainWindow.
I hope, you understand what my prob is.
CU Phoenix
For Example the Coords are relativ of 0,0 of ModalWindow.
With
gui::IGUIListBox* box0 = guienv->addListBox(mod1...
The ListBox appears depend of MainWindow.
I hope, you understand what my prob is.
CU Phoenix
Re: Because !
No, not really, sorry I think I'll have to go and have some sleep...Phoenix wrote: I hope, you understand what my prob is.