开发者

Can I change foreground color of disabled swt control

I need to set the foreground color of disabled controls to black instead of that grey. I see that the background color can be set bu开发者_运维技巧t i couldn't set the foreground color. Is it posible? If so, how?


Depends on which control you want to change back/foreground. In SWT Javadoc the setBackgroundColor method you can find this note

Note: This operation is a hint and may be overridden by the platform. For example, on Windows the background of a Button cannot be changed.


If it is very important, you might be able to paint the text yourself by hooking into the paint event... I haven't tried though :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜