I've got a question about listbox.I would like to attach it to a tab in a window, but when I write the name of the window as a parent the listbox dosen't seem to appear.
Here's my code:
Code: Select all
IGUIWindow* options = guienv->addWindow(
rect<s32>(400,200,800,600),
false, // modal
L"Options");
options->getCloseButton()->setVisible(false);
// create tab control and tabs
IGUITabControl* optionstab = guienv->addTabControl(
rect<s32>(2,20,800,600),options, true, true);
IGUITab* video = optionstab->addTab(L"Video");
IGUITab* audio = optionstab->addTab(L"Audio");
IGUIListBox* resbox = guienv->addListBox(rect<s32>(420,270,520,320),video);
resbox->addItem(L"640x480");
resbox->addItem(L"800x600");
resbox->addItem(L"1024x768");