Page 1 of 1

MultiColumnList not updating on item text change [SOLVED]

Posted: Tue May 20, 2008 19:44
by Aiursrage2k
Hello I am trying to update an item (by changing the items' text) in the MultiColumnList. The listbox does not reflect the updated data until I click on the MultiColumnList again. I would like find a way to instantly update the multicolumnlistbox when the items text changes.

Edit: requestRedraw does the ticket!

Posted: Wed May 21, 2008 16:31
by Liberator
For people reading this,.. I think the reason for this is because this way you can edit multiple items before having to do a redraw which is more efficient. Its a basic transaction mechanism.

Posted: Thu May 22, 2008 08:23
by CrazyEddie
I can confirm the reason for non-automatic updates is for efficiency reasons.

BTW, the correct member to notify of changes is CEGUI::MultiColumnList::handleUpdatedItemData

CE.