Changing colour of items in a List control? [message #454491] |
Fri, 22 April 2005 10:17  |
Eclipse User |
|
|
|
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.
|
|
|
Re: Changing colour of items in a List control? [message #454492 is a reply to message #454491] |
Fri, 22 April 2005 11:23  |
Eclipse User |
|
|
|
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@amis.com> wrote in message
news:d4b145$e7p$1@news.eclipse.org...
> 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03932 seconds