Page 1 of 1
ItemListBox ensureItemIsVisible
Posted: Tue Aug 26, 2008 12:47
by dewyatt
So, ItemListBox is the 'new' listbox, correct?
I'm using it and I need the functionality of ensureItemIsVisible but I see no such function in ItemListBox.
Am I missing something?
Posted: Tue Aug 26, 2008 14:18
by Ninja
hiya
i think what you need is setProperty visable
have a look here
http://www.cegui.org.uk/wiki/index.php/SetProperty#ItemListbox
for the use of this
hope this helps
Posted: Wed Aug 27, 2008 00:49
by dewyatt
I don't think that's what I need.
I'm trying to ensure that an ItemEntry is visible within an ItemListBox.
I don't think ItemEntry's have a setVisible.
Posted: Thu Aug 28, 2008 16:27
by Jamarr
I don't think this functionality exists; at least it's not obvious if it does. I can see how it would be useful.
Posted: Fri Aug 29, 2008 00:15
by dewyatt
I have since switched to a Combobox since I had no luck on this.
And it is indeed useful, that's why the old listbox had that function I'm sure.
Maybe explaining why I needed this will give some incentive to add this functionality.
I had an ItemListbox of video resolutions (sorted manually).
Naturally, I would want to have the current resolution be selected in the ItemListbox (and visible!).
Posted: Mon Sep 01, 2008 08:43
by CrazyEddie
Seems like an ommission. I'll add a ticket for this so it does not get lost in the mists of time
CE.
Posted: Tue Nov 25, 2008 11:34
by CrazyEddie
This functionality has now been added in branches/v0-6 and will feature in the soon to be released 0.6.2.
I added ScrolledItemListBase::ensureItemIsVisibleVert and ScrolledItemListBase::ensureItemIsVisibleHorz functions (added two new functions because ScrolledItemListBase has nothing that specifies any particular layout).
CE.