Listbox.SetItemForegroundColour doesn't seem to work

hello,

I want to emphasize one of the items in a common listbox,
but SetItemForegroundColour doesn't seem to do anything.

How can give a specific item in a listbox a different color
(or any other style attribute to emphasize it) ?

thanks,
Stef Mientki

Use a wx.ListCtrl instead.

···

On 11/27/09 2:11 AM, Stef Mientki wrote:

hello,

I want to emphasize one of the items in a common listbox,
but SetItemForegroundColour doesn't seem to do anything.

How can give a specific item in a listbox a different color
(or any other style attribute to emphasize it) ?

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

···

On 11/27/09 2:11 AM, Stef Mientki wrote:
  

hello,

I want to emphasize one of the items in a common listbox,
but SetItemForegroundColour doesn't seem to do anything.

How can give a specific item in a listbox a different color
(or any other style attribute to emphasize it) ?
    
Use a wx.ListCtrl instead.

Thanks Robin,
but that makes the program a lot more complicated.
So for the moment I use a colored StaticText to show the selected item
and maybe in the future I wrap ListCtrl/

cheers,
Stef