Page 1 of 1

Select row in MultiColumnList [solved]

Posted: Tue Feb 03, 2009 21:57
by Toge
Hello.

When I click over a row in a MultiColumnList, it isn't selected. How can I select it?

Thanks

Edit:

http://www.cegui.org.uk/gallery/display ... um=2&pos=1
http://www.cegui.org.uk/gallery/display ... um=2&pos=5

In that screenshots, when a row is selected, the background colour is different. When I select a row, the background colour is still black, altought the row is selected. How can I change the background colour when a row is selected?



Solved

Before insert an item:

ListboxTextItem* item = new ListboxTextItem("Text");
item->setSelectionBrushImage (&ImagesetManager::getSingleton ().getImageset("TaharezLook")->getImage("MultiListSelectionBrush"));

multicolumnlist->addRow(item, id);