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?
