[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Unable to set background color of an SWT Button
|
Thank you, now this makes a lot of sense.
I have been searching in eclipse bugzilla but could not find the bug (I got
too 200 hits for "button background swt windows").
Could you give me the bug number?
Regards,
Luis.
"Chhil" <aaa@xxxxxxxxxxxxxx> wrote in message
news:d438nb$el6$1@xxxxxxxxxxxxxxxxxxx
> Hello Luis,
> This is currently not possible on windows and there is bug report filed
> in bugzilla.
>
> -chhil
> Luis wrote:
> > Hello,
> >
> > I have Eclipse 3.0.1 under windows XP. I have created a simple SWT Shell
> > (window), with the help of the Visual Editor Plugin.
> >
> > By using the setBackground(...) method, I can easily change the
> > background of a label. But when I do the same to a button, it just
> > ignores me.
> >
> > Is that normal? Is it a bug? A missing feature which will be available
> > in a later version? Or is it that the OS Look and Feel prevails for
this?
> >
> > In any case... is there a workaround for this limitation? I could change
> > the whole OS Look and Feel, but this is too radical, and also in my
> > application I will need to have buttons of different colors depending on
> > its functionality.
> > The only workaround I can think of is to do like Swing does and write my
> > own button component from scratch. That looks too much like a brute
> > force approach.
> >
> > Thanks for your help,
> >
> > Luis.
> >