Determining ListBox's Size

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

User avatar
avengre
Just popping in
Just popping in
Posts: 3
Joined: Sun Nov 06, 2005 01:03
Contact:

Determining ListBox's Size

Postby avengre » Wed Dec 15, 2010 14:13

Hello, i'm currently creating a framewindow, with a listbox on the inside. I would like to resize the framewindow to accomodate the entire contents of a listbox, however I can't figure out how to either set the ListBox to expand to full size, or how to get the Unclipped / Unscrolled size of the client area. None of the accessor functions i've been able to do what I need done.. Suggestions?

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

Re: Determining ListBox's Size

Postby Jamarr » Wed Dec 15, 2010 18:00

The unclipped dimensions only apply to the window itself, in this case the listbox, not it's children. So you want the 'unscrolled' size. I do not believe there is any function to pull this size directly. However, you should be able to calculate it yourself by adding up each item's size.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

makofierce
Just popping in
Just popping in
Posts: 12
Joined: Mon Aug 16, 2010 02:02

Re: Determining ListBox's Size

Postby makofierce » Sat Dec 18, 2010 04:34

viewtopic.php?f=10&t=3684

But the padding? That's in the XML only...

makofierce
Just popping in
Just popping in
Posts: 12
Joined: Mon Aug 16, 2010 02:02

Re: Determining ListBox's Size

Postby makofierce » Sat Dec 18, 2010 19:14

Something else:

If Listbox & ListboxItem are deprecated, how do we do dropdown lists?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Determining ListBox's Size

Postby Kulik » Thu Dec 23, 2010 18:33

ItemListbox and ItemEntry

makofierce
Just popping in
Just popping in
Posts: 12
Joined: Mon Aug 16, 2010 02:02

Re: Determining ListBox's Size

Postby makofierce » Fri Dec 31, 2010 09:51

Dropdown lists.

makofierce
Just popping in
Just popping in
Posts: 12
Joined: Mon Aug 16, 2010 02:02

Re: Determining ListBox's Size

Postby makofierce » Thu Jan 06, 2011 18:46

...

ItemListbox and ItemEntry, the non-deprecated objects, do not have any way to automatically make dropdown lists, like the deprecated ones do.

This is a problem.

makofierce
Just popping in
Just popping in
Posts: 12
Joined: Mon Aug 16, 2010 02:02

Re: Determining ListBox's Size

Postby makofierce » Sat Mar 05, 2011 20:56

.


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 2 guests