listbox : scrollbar problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
troopa
Posts: 28
Joined: Thu Mar 23, 2006 11:00 am
Location: Toulouse (France)
Contact:

listbox : scrollbar problem

Post by troopa »

I have create some listboxes but the scrollbar doesn't appear.

There is a little space for it on the left side of the listbox, but no scrollbar.

I don't understand where it can coming from

I paste the code I :

Code: Select all

m_pGui->addListBox( core::rect<s32>( 0, 100, 0, 60 ), 0, 3, true);
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, the dimensions are not correct !!!
(or did you make a type mismatch by posting here ??? )
Your listbox is 0 sized in x direction and -40 in y direction!!!
Try something like this:

Code: Select all

guienv->addListBox( core::rect<s32>( 10, 100, 100, 160 ), 0, 3, true);
It creates a box with size 90*60...

Also I wonder that you can see something of the box...
You should see nothing with this dimensions...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
troopa
Posts: 28
Joined: Thu Mar 23, 2006 11:00 am
Location: Toulouse (France)
Contact:

Post by troopa »

you right, it was this !! Sorry to post so silly question

thanks
Post Reply