Hi,
I have another question. On listboxes this time :
I have tried the new system and it works fine but :
I can’t manage to create a listbox without a static height.
For what I have understood, what defines the height of the listbox is the number of displayed lines.
What if I don’t know this number of lines ?
For example I want to have a listbox that fill 50% of my screen. Whatever the screen resolution is.
On a 800x600 resolution, it will have 10 lines.
On a 1027x768, it will have 15.
I can do it via code if it’s not possible in the xml.
But the ListBox class doesn’t contain a method to change the number of lines displayed. Should I get another Nifty control class for that?
Thanks in advance
Edit :
I’ve just seen another minor problem :
When the slide bar is highlighted and the number of line in the listbox change, the slide bar is updated but not the highlight effect.
See examples below :
For the first problem, is it something that can be done with the current system ?
Maybe I should just switch to a window with a HUD ( I have tried it yet. But from what I remembered, I thinl it’s one evolution of this 1.3 version )
yes, the ListBox in 1.3 will only display a fixed number of lines (specified by the “displayItems” properties) and this can’t currently be changed
I understand your problem but this is currently not possible, sorry
Well, I will manage without it.
I will try scrollPanel insted for that kind of list. I stop this post here because I already have another one which speak about ScrollPanel