Page 1 of 1

ListboxTextItem::setTextColours()

Posted: Thu Mar 08, 2007 08:38
by Henu
When setting color of text in Listbox using method ListboxTextItem::setTextColours(), I noticed that nothing happens. It seems that the Listbox needs to be refreshed somehow, and I solved the problem by calling Listbox::hide() and then Listbox::show().

Now the question: Is this bug or is there some good reason why ListboxTextItem::setTextColours() doesn't tell Listbox to render itself?

Posted: Fri Mar 09, 2007 21:19
by Levia
Cause a ListboxTextItem isnt linked to Listbox. I usually set the colors before I add them to the list. That works aswell. Try calling ensureItemIsVisible on the item, that might work.