Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] How to change the foreground color of adisabled control

I tried with the custom draw example which was given in the below link, but that is working as long as the control is enabled.

 

And I am unable to change the foreground/background color of the tree items once the tree is disabled.

 

Is there any way to solve this?

 

 

(http://www.eclipse.org/swt/snippets/)

 

 

Thanks & Regards,

Arun Kumar Simhadri

 


From: platform-swt-dev-bounces@xxxxxxxxxxx [mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Thursday, July 10, 2008 3:44 AM
To: Eclipse Platform SWT component developers list.
Subject: Re: [platform-swt-dev] How to change the foreground color of adisabled control

 


You should be able to use custom draw to get what you want.  See the snippets page (http://www.eclipse.org/swt/snippets/) for custom draw tree example code.


arunkumarsimhadri <arunsimha@xxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

07/09/2008 10:42 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To

platform-swt-dev@xxxxxxxxxxx

cc

 

Subject

[platform-swt-dev] How to change the foreground color of a disabled        control

 

 

 





Hi,

I am stucked with a problem.

My requirement is to display the selected tree item foreground color as blue
color and disable the Tree(SWT.Tree).

But when the tree control is disabled, the selected tree item is not
displayed in blue color. Instead it is displayed in black.

How can i solve this problem
--
View this message in context: http://www.nabble.com/How-to-change-the-foreground-color-of-a-disabled-control-tp18362574p18362574.html
Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Back to the top