Ive got a quick question that somebody could possibly help me out with.
Ive made the list box rediculously large to be sure there is no wrapping (although i didnt think it had any)
As you can see from the screenshot the problem im having is
1> the location of the selected item in the listbox is offset from the item text.
2> the offset from the first list box item seems to be broken and beyond the boarder of the list box even though there is no scroll bar on it.
The code ive used to create this is..
Code: Select all
guiLBNavComp = env->addListBox(core::rect<s32>(10,340,400,560),0,105,true);
Code: Select all
wchar_t tmp[20];
swprintf(tmp, 20, L"%S\n",GameBody::GameBodys[i]->name);
GameBody::GameBodys[i]->guiid = guiLBNavComp->addItem(tmp);
printf("Adding %s with id %i\n", GameBody::GameBodys[i]->name, GameBody::GameBodys[i]->guiid);
guiLBNavComp->setItemOverrideColor(guiLBNavComp->getItemCount()-1,video::SColor(255,0,200,100));