[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Changing colour of items in a List control?

Try to use a Table control instead of a List control. From the JFace package
you can use the TableViewer wrapper class.

Regards,
Boby

"Mark Melvin" <mark_melvin@xxxxxxxx> wrote in message
news:d4b145$e7p$1@xxxxxxxxxxxxxxxxxxx
> I would like to change the background or foreground colour of items in a
> list control to indicate status.  I don't think this is possible, but
> can anyone give me any hint as to the best control to use for this type
> of behaviour?  Or is it possible and I am missing something?  I
> currently have an implementation that uses a List, but I want to add
> some functionality to show that certain items in the list have an error
> condition, so I would like to highlight them red (or something).
>
> I looked at a JFace ListViewer, but shoe-horning a ContentProvider and
> underlying data model into the current code will be...well...difficult.
>
> Thanks,
> Mark.