|
|
|
Re: get enabled and disabled color for a widget(text,combo...) [message #465718 is a reply to message #465713] |
Tue, 20 December 2005 12:55 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Hi Michael,
the background color of a text widget can be retrieved using
SWT.COLOR_LIST_BACKGROUND.
COLOR_WIDGET_BACKGROUND is the color of empty shell spaces (usually
gray) and therefore similar to the backgound color of an disabled text
widget.
Hope that helped,
Friederich
Michael Seele wrote:
>> Color bg =
>> Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_BACKGRO UND);
>
>
> when i do this for the text widget under winXP i got the disabled
> background color! where do i get the enabled background color? why do i
> get the disabled background color by SWT.COLOR_WIDGET_BACKGROUND?
>
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel +49 241 9979356
Fax +49 221 726670
www.kupzog.de/fkmk
|
|
|
|
Powered by
FUDForum. Page generated in 0.04015 seconds