Page 1 of 1

MultiColumnList does not updates when I change it contents

Posted: Mon Dec 19, 2005 14:03
by b-s-a
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?

Re: MultiColumnList does not updates when I change it conten

Posted: Mon Dec 19, 2005 21:15
by b-s-a
I try run my program on another computer (also amd64), but no problems... Very very strange...

Re: MultiColumnList does not updates when I change it conten

Posted: Wed Dec 21, 2005 16:32
by b-s-a
Sorry. It's my error (I'm change data after call update function). :oops: :roll: