MultiColumnList not updating on item text change [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

User avatar
Aiursrage2k
Just popping in
Just popping in
Posts: 3
Joined: Fri Dec 16, 2005 19:31

MultiColumnList not updating on item text change [SOLVED]

Postby Aiursrage2k » Tue May 20, 2008 19:44

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!

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

Postby Liberator » Wed May 21, 2008 16:31

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.
Image
All that is necessary for the triumph of evil is that good men do nothing

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

Postby CrazyEddie » Thu May 22, 2008 08:23

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests