Determining ListBox's Size
Moderators: CEGUI MVP, CEGUI Team
Determining ListBox's Size
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?
Re: Determining ListBox's Size
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!
-
- Just popping in
- Posts: 12
- Joined: Mon Aug 16, 2010 02:02
-
- Just popping in
- Posts: 12
- Joined: Mon Aug 16, 2010 02:02
Re: Determining ListBox's Size
Something else:
If Listbox & ListboxItem are deprecated, how do we do dropdown lists?
If Listbox & ListboxItem are deprecated, how do we do dropdown lists?
-
- Just popping in
- Posts: 12
- Joined: Mon Aug 16, 2010 02:02
Re: Determining ListBox's Size
Dropdown lists.
-
- Just popping in
- Posts: 12
- Joined: Mon Aug 16, 2010 02:02
Re: Determining ListBox's Size
...
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.
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.
-
- Just popping in
- Posts: 12
- Joined: Mon Aug 16, 2010 02:02
Who is online
Users browsing this forum: Google [Bot] and 8 guests