Strange scrolling with ListBox

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Strange scrolling with ListBox

Post by Virror »

I have a small ListBox with both horizontal and vertical scrolling bars and two items in it. The problem is that the vertical scroll don't seem to take the vertical scroll bar into consideration, so the last item is hardly visible.
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");
 
Last edited by Virror on Tue Sep 27, 2011 1:36 pm, edited 2 times in total.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Strange scrolling with ListBox

Post by CuteAlien »

Hm, either your problem has to do with the GUITable or you posted the wrong code. It doesn't seem to contain a listbox...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: Strange scrolling with Table

Post by Virror »

Hmm, i wonder were i got the ListBox from, ofcourse its the GUITable thats having the problem : p

Edit: Forget the part with Table overwriting, that was just my stupid mistake, but still problem with the scroll.
Post Reply