How to change button background color? [message #453822] |
Mon, 11 April 2005 13:41 |
Eclipse User |
|
|
|
Originally posted by: mario.vanassche.scansoft.com
Hi,
Does anyone know how to change a button's background color? It seems that
the following statement has no effect:
button1.setBackground((button1.getDisplay().getSystemColor(S WT.COLOR_CYAN)));
If you apply the same thing to another control, e.g. a shell, it does work
fine:
shell.setBackground((shell.getDisplay().getSystemColor(SWT.C OLOR_CYAN)));
I found a lot of similar problems reported on other forums, but no real
solutions...
Thanks,
Mario Van Assche
|
|
|
Re: How to change button background color? [message #453831 is a reply to message #453822] |
Mon, 11 April 2005 16:50 |
Eclipse User |
|
|
|
Originally posted by: johns.atwork.comhem.se
Mario Van Assche wrote:
> Hi,
>
> Does anyone know how to change a button's background color? It seems
> that the following statement has no effect:
>
> button1.setBackground((button1.getDisplay().getSystemColor(S WT.COLOR_CYAN)));
>
>
> If you apply the same thing to another control, e.g. a shell, it does
> work fine:
>
> shell.setBackground((shell.getDisplay().getSystemColor(SWT.C OLOR_CYAN)));
>
> I found a lot of similar problems reported on other forums, but no real
> solutions...
>
> Thanks,
>
> Mario Van Assche
>
You can't do it on windows.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=64957
John
|
|
|
Powered by
FUDForum. Page generated in 0.09906 seconds