[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

SWT development <platform-swt-dev@xxxxxxxxxxx>
[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.


Money can't buy everything.
Sometimes money can't even buy a gun...
platform-swt-dev mailing list