Also the ListBox seems to start a bit before the actual visible ListBox, overwriting any text that is close above. Code i'm using for GUI:
Code: Select all
IGUIWindow * skillWindow = irrGui->addWindow(rect<s32>(30, 100, 330, 600), false, L"Skills");
skillWindow->setVisible(false);
IGUIStaticText * skillCat1 = irrGui->addStaticText(L"Gathering skills",rect<s32>(10, 30, 290, 45),false,true,skillWindow);
skillCat1->setOverrideFont(bigFont);
IGUITable * skillTree = irrGui->addTable(rect<s32>(10, 55, 290, 110),skillWindow, -1, false);
skillTree->addColumn(L"Name");
skillTree->addColumn(L"Skill");
skillTree->setColumnWidth(0,220);
skillTree->setColumnWidth(1,50);
skillTree->setColumnOrdering(0, EGCO_FLIP_ASCENDING_DESCENDING);
skillTree->setColumnOrdering(1, EGCO_FLIP_ASCENDING_DESCENDING);
skillTree->addRow(0);
skillTree->setCellText(0,0,L"Mining");
skillTree->setCellText(0,1,L"1");
skillTree->addRow(1);
skillTree->setCellText(1,0,L"Woodcutting");
skillTree->setCellText(1,1,L"1");