Select row in MultiColumnList [solved]

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

Toge
Just popping in
Just popping in
Posts: 12
Joined: Thu Jan 22, 2009 21:59

Select row in MultiColumnList [solved]

Postby Toge » Tue Feb 03, 2009 21:57

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);

Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests