Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to change selection color
| | |
Re: How to change selection color [message #449081 is a reply to message #449023] |
Tue, 18 January 2005 02:20 |
Kelly Muñiz Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Thank you Veronika, I was afraid of that. This presents a problem for
companies that desire to brand their apps by using their own theme (which
may not match at all the OS theme).
However, I understand the point you make. Thanks for responding so
quickly.
Veronika Irvine wrote:
> You can not change the selection colour of the Tree or Table. It is
> controlled by the theme used by the operating system. In general, it is not
> a good idea to change the colours that users associate with a specific
> meaning. For example, selection has the same colour in trees, tables, text
> widgets, lists. The selection colour is an indicator of a state. If you
> change this colour for your one application it will be confusing to the
> user.
> "Kelly "Muñiz"" <kmuniz@cisco.com> wrote in message
> news:csh5cq$5qh$1@www.eclipse.org...
>> Hi,
>>
>> I also would like to change the selection color on tables and trees but
>> have not figured out a way. I hope someone can help you with your
>> question.
>>
>> I tried adding a selection listener and changing the background color on
>> the selected item but this doesn't work too well (at least for the tree
>> widget).
>>
>> Kelly
>>
>> Evgeni wrote:
>>
>>> Hi all.
>>
>>> When the table is not focused, the selected row is displayed with a light
>>> grey background. I need to change this color. Is there any simple way how
>>> to do it?
>>
>>> I use Win2K, but I need a tip for something, what will work on any other
>>> eclipse - compatible platform too.
>>
>>> Thanks.
>>
>>> Evgeni.
>>
|
|
|
Re: How to change selection color [message #449156 is a reply to message #449081] |
Tue, 18 January 2005 22:06 |
Bill Ewing Messages: 49 Registered: July 2009 |
Member |
|
|
Kelly Muñiz wrote:
> Thank you Veronika, I was afraid of that. This presents a problem for
> companies that desire to brand their apps by using their own theme (which
> may not match at all the OS theme).
> However, I understand the point you make. Thanks for responding so
> quickly.
> Veronika Irvine wrote:
>> You can not change the selection colour of the Tree or Table. It is
>> controlled by the theme used by the operating system. In general, it is
not
>> a good idea to change the colours that users associate with a specific
>> meaning. For example, selection has the same colour in trees, tables, text
>> widgets, lists. The selection colour is an indicator of a state. If you
>> change this colour for your one application it will be confusing to the
>> user.
>> "Kelly "Muñiz"" <kmuniz@cisco.com> wrote in message
>> news:csh5cq$5qh$1@www.eclipse.org...
>>> Hi,
>>>
>>> I also would like to change the selection color on tables and trees but
>>> have not figured out a way. I hope someone can help you with your
>>> question.
>>>
>>> I tried adding a selection listener and changing the background color on
>>> the selected item but this doesn't work too well (at least for the tree
>>> widget).
>>>
>>> Kelly
>>>
>>> Evgeni wrote:
>>>
>>>> Hi all.
>>>
>>>> When the table is not focused, the selected row is displayed with a light
>>>> grey background. I need to change this color. Is there any simple way how
>>>> to do it?
>>>
>>>> I use Win2K, but I need a tip for something, what will work on any other
>>>> eclipse - compatible platform too.
>>>
>>>> Thanks.
>>>
>>>> Evgeni.
>>>
|
|
|
Re: How to change selection color [message #449157 is a reply to message #449081] |
Tue, 18 January 2005 22:10 |
Bill Ewing Messages: 49 Registered: July 2009 |
Member |
|
|
We have a similar problem. We found that you can change the background
color on any row programmatically- see this website:
http://wiki.schubart.net/wiki/wiki.phtml?title=How_to_Color_ Rows_in_a_TableViewer&printable=yes
Kelly Muñiz wrote:
> Thank you Veronika, I was afraid of that. This presents a problem for
> companies that desire to brand their apps by using their own theme (which
> may not match at all the OS theme).
> However, I understand the point you make. Thanks for responding so
> quickly.
> Veronika Irvine wrote:
>> You can not change the selection colour of the Tree or Table. It is
>> controlled by the theme used by the operating system. In general, it is
not
>> a good idea to change the colours that users associate with a specific
>> meaning. For example, selection has the same colour in trees, tables, text
>> widgets, lists. The selection colour is an indicator of a state. If you
>> change this colour for your one application it will be confusing to the
>> user.
>> "Kelly "Muñiz"" <kmuniz@cisco.com> wrote in message
>> news:csh5cq$5qh$1@www.eclipse.org...
>>> Hi,
>>>
>>> I also would like to change the selection color on tables and trees but
>>> have not figured out a way. I hope someone can help you with your
>>> question.
>>>
>>> I tried adding a selection listener and changing the background color on
>>> the selected item but this doesn't work too well (at least for the tree
>>> widget).
>>>
>>> Kelly
>>>
>>> Evgeni wrote:
>>>
>>>> Hi all.
>>>
>>>> When the table is not focused, the selected row is displayed with a light
>>>> grey background. I need to change this color. Is there any simple way how
>>>> to do it?
>>>
>>>> I use Win2K, but I need a tip for something, what will work on any other
>>>> eclipse - compatible platform too.
>>>
>>>> Thanks.
>>>
>>>> Evgeni.
>>>
|
|
|
Re: How to change selection color [message #449158 is a reply to message #449081] |
Tue, 18 January 2005 22:10 |
Bill Ewing Messages: 49 Registered: July 2009 |
Member |
|
|
We have a similar problem. We found that you can change the background
color on any row programmatically- see this website:
http://wiki.schubart.net/wiki/wiki.phtml?title=How_to_Color_ Rows_in_a_TableViewer&printable=yes
Kelly Muñiz wrote:
> Thank you Veronika, I was afraid of that. This presents a problem for
> companies that desire to brand their apps by using their own theme (which
> may not match at all the OS theme).
> However, I understand the point you make. Thanks for responding so
> quickly.
> Veronika Irvine wrote:
>> You can not change the selection colour of the Tree or Table. It is
>> controlled by the theme used by the operating system. In general, it is
not
>> a good idea to change the colours that users associate with a specific
>> meaning. For example, selection has the same colour in trees, tables, text
>> widgets, lists. The selection colour is an indicator of a state. If you
>> change this colour for your one application it will be confusing to the
>> user.
>> "Kelly "Muñiz"" <kmuniz@cisco.com> wrote in message
>> news:csh5cq$5qh$1@www.eclipse.org...
>>> Hi,
>>>
>>> I also would like to change the selection color on tables and trees but
>>> have not figured out a way. I hope someone can help you with your
>>> question.
>>>
>>> I tried adding a selection listener and changing the background color on
>>> the selected item but this doesn't work too well (at least for the tree
>>> widget).
>>>
>>> Kelly
>>>
>>> Evgeni wrote:
>>>
>>>> Hi all.
>>>
>>>> When the table is not focused, the selected row is displayed with a light
>>>> grey background. I need to change this color. Is there any simple way how
>>>> to do it?
>>>
>>>> I use Win2K, but I need a tip for something, what will work on any other
>>>> eclipse - compatible platform too.
>>>
>>>> Thanks.
>>>
>>>> Evgeni.
>>>
|
|
|
Goto Forum:
Current Time: Sat Apr 20 05:52:40 GMT 2024
Powered by FUDForum. Page generated in 0.03038 seconds
|