Page 1 of 1
ItemListbox, Listbox, Combobox, and MultiColumnList
Posted: Tue Feb 19, 2008 16:58
by Rackle
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.
Posted: Tue Feb 19, 2008 21:24
by scriptkid
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.
Posted: Wed Feb 20, 2008 09:44
by CrazyEddie
I like it. 'nuff said
Posted: Thu Apr 24, 2008 03:18
by Liberator
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.
Re: ItemListbox, Listbox, Combobox, and MultiColumnList
Posted: Fri Jul 16, 2010 09:01
by lcy03406
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.
Re: ItemListbox, Listbox, Combobox, and MultiColumnList
Posted: Fri Jul 16, 2010 17:22
by Jamarr
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.
Re: ItemListbox, Listbox, Combobox, and MultiColumnList
Posted: Wed Jul 21, 2010 08:48
by CrazyEddie
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.