ListboxTextItem::setTextColours()

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

Henu
Just popping in
Just popping in
Posts: 1
Joined: Wed Mar 07, 2007 13:13
Location: Tampere, Finland
Contact:

ListboxTextItem::setTextColours()

Postby Henu » Thu Mar 08, 2007 08:38

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?

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Fri Mar 09, 2007 21:19

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.
Image
Image


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests