Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How does one set the background on a Button with style SWT.PUSH or SWT. ARROW?

Yes, I too have found this to be an issue. It appears that the button is getting all settings from the parent instead of just the background. For example, if you set the Foreground of the shell, it will affect the buttons. I hope this was not intentional.

Hope this helps,
 colin

Lodewijk Pool wrote:

Apart from writing a customised canvas that acts like a button, is there a simpler way of doing this? Using the setForeground and setBackground methods do not seem to work. I noticed that in the Controls Example the newly set background and foreground colours are only visible on CHECK & RADIO button styles. The other styles seem to ignore the setting. Although if you wiggle the window around a little you do see the color flickering through every now and again. Which leads me to believe that somewhere further down the pipeline the colours are being reset. Is there someway to prevent this? Regards,
Louis.
!DSPAM:43beeeee54362867220627!

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

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


!DSPAM:43beeeee54362867220627!

begin:vcard
fn:Colin Parcell
n:Parcell;Colin
org:Tangible Software
adr;dom:Suite 300;;6701 Democracy Blvd;Bethesda;MD;20817
email;internet:cparcell@xxxxxxxxxxxxxxxxxxxx
title:Consultant
tel;work:703.863.7834Con
x-mozilla-html:TRUE
url:http://www.tangiblesoftware.com
version:2.1
end:vcard


Back to the top