8 Years
Discussion Span
Last Post by HiHe

Well that is not what I want to do..
I want to colour a single item...

(I just see I made a typo it had to be SetItemForegroundColour)

Edited by Kruptein: n/a


Well listboxes are HTML okay, so you can put colours in. I know this works for text as i can see it working in the wxPython demo, i'm not sure that it would work for background.

If you look at listctrl's in the wxPython demo, they are similar yet have more advanced features and i personally have done individual colours for each item in a listctrl.

Anyway, hope that helps.


Well with the listctrl it indeed works, but I like the listbox more in this case,
and I want to change the text colour from some items...
is that included in the demo? O.o?


Okay, what is the equivalent of ListBox.Append(item) for HtmlListBox?
I can't find it in the api reference

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.