[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Background & foreground colors of a Button widget


It's a Windows limitation.  You can't set the colors of a push button.



Qian Qiao <qian.qiao@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

07/27/2004 01:47 PM

Please respond to
platform-swt-dev

To
SWT development <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Background & foreground colors of a Button widget





Hi all,

I am currently working on a project that uses SWT and JFace.

Currently my code generates a set of buttons. And I decided to color
these buttons.

The SWT api suggests the Button inherit setBackground(Color) and
setForeground(Color) from Control, however, invoking these methods has
no effect on the look of the button.

Any suggestions or alternatives?

Thanks in advance.

--Joe

--
Money can't buy everything.
Sometimes money can't even buy a gun...
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev