ItemListBox ensureItemIsVisible

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

ItemListBox ensureItemIsVisible

Postby dewyatt » Tue Aug 26, 2008 12:47

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?

Ninja
Quite a regular
Quite a regular
Posts: 86
Joined: Sun Aug 20, 2006 11:42

Postby Ninja » Tue Aug 26, 2008 14:18

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

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

Postby dewyatt » Wed Aug 27, 2008 00:49

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.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Postby Jamarr » Thu Aug 28, 2008 16:27

I don't think this functionality exists; at least it's not obvious if it does. I can see how it would be useful.

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

Postby dewyatt » Fri Aug 29, 2008 00:15

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!).

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Sep 01, 2008 08:43

Seems like an ommission. I'll add a ticket for this so it does not get lost in the mists of time ;)

CE.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Nov 25, 2008 11:34

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests