MultiColumnList does not updates when I change it contents

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
b-s-a
Just popping in
Just popping in
Posts: 10
Joined: Wed Nov 30, 2005 16:12
Location: Moscow, Russia
Contact:

MultiColumnList does not updates when I change it contents

Postby b-s-a » Mon Dec 19, 2005 14:03

I need time to time to change the content of MultiColumnList by programm.
I do it as:

Code: Select all

void SomeClassName::updateList(void) {
 MultiColumnList *list = ....; //this list contains 4 columns
 list->resetList();
 for(int i = 0; i < a; i++) {
  int n = list->addRow();
  for(int j = 0; j < 4; j++) {
   ListboxTextItem *item = new ListboxTextItem(data[i][j], 0);
   list->setItem(item, j, n);
  }
 }
}

This function I call in two cases:
1. Before show window with this list
2. On each update of the list

First case is always work properly. But second makes changes on screen only when I move scrollbar to the non initial position of the MultiColumnList before update.

What I do wrong?

User avatar
b-s-a
Just popping in
Just popping in
Posts: 10
Joined: Wed Nov 30, 2005 16:12
Location: Moscow, Russia
Contact:

Re: MultiColumnList does not updates when I change it conten

Postby b-s-a » Mon Dec 19, 2005 21:15

I try run my program on another computer (also amd64), but no problems... Very very strange...

User avatar
b-s-a
Just popping in
Just popping in
Posts: 10
Joined: Wed Nov 30, 2005 16:12
Location: Moscow, Russia
Contact:

Re: MultiColumnList does not updates when I change it conten

Postby b-s-a » Wed Dec 21, 2005 16:32

Sorry. It's my error (I'm change data after call update function). :oops: :roll:


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests