ItemListbox, Listbox, Combobox, and MultiColumnList

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

ItemListbox, Listbox, Combobox, and MultiColumnList

Postby Rackle » Tue Feb 19, 2008 16:58

I know that the Listbox is intended to be replaced by the ItemListbox widget. There's no need to have these two listbox widgets, one is sufficient.

However what about moving everything (Listbox, Combobox) to a MultiColumnItemListbox? After all, a Listbox is simply a MultiColumnList with a single column. MultiColumnItemListbox is a mouthful and could simply be named Listbox.

One thing I'm uncertain is how to deal with a Combobox that opens a multi-column Listbox. Maybe the Combobox defaults to displaying the contents of the first column and a setDisplayedColumnData(int pColumn) function allows the user to display the contents of another column when a selection is made.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Feb 19, 2008 21:24

Sounds like a plan. I know the Win API has a List Control which can also function from a basic list to a table-like setup. The 'workaround' for the combobox sounds nice to me as well. :)
Check out my released snake game using Cegui!

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

Postby CrazyEddie » Wed Feb 20, 2008 09:44

I like it. 'nuff said ;)

Liberator
Just popping in
Just popping in
Posts: 19
Joined: Mon Jun 25, 2007 13:16
Contact:

Postby Liberator » Thu Apr 24, 2008 03:18

One thing I would love to have is a grid where I can shove widgets in each grid section so that I can make grid with pulldownlists in it and buttons,.. whatever. I thought about making this myself by hacking the multicolumnlist thing but it would be better if this was an official widget. So shortly put,.. a grid widget that can have other widgets as its elements.
Image
All that is necessary for the triumph of evil is that good men do nothing

lcy03406
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Fri Apr 24, 2009 01:18

Re: ItemListbox, Listbox, Combobox, and MultiColumnList

Postby lcy03406 » Fri Jul 16, 2010 09:01

Sorry to reply a so old topic, but is the MultiColumnItemListbox available now? I'm using the 0.7 version, and find that MultiColumnList contains ListboxItem, not ItemEntry-based windows. I just want to add a popup menu for every row of the list. It seems the best way is make getItemAtPoint public to get the item when mouse right clicked. If there is a MultiColumnItemListbox, I think I can make it more beautiful and need not to hack getItemAtPoint.

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

Re: ItemListbox, Listbox, Combobox, and MultiColumnList

Postby Jamarr » Fri Jul 16, 2010 17:22

If it is not in the code, then unfortunately it does not exist yet :(

Also, if you want to avoid modifying the CEGUI source another option is to derive your own class from MCL that exposes the getItemAtPoint method.
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!

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

Re: ItemListbox, Listbox, Combobox, and MultiColumnList

Postby CrazyEddie » Wed Jul 21, 2010 08:48

Rackle went off to parts unknown shortly after this original posting, so this work was not done. However, I support the idea and still want a single unified list, if/when this will get done is anybodies guess ;)

CE.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests