本文介绍了SWT:没有颜色选择器的FontDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何显示没有颜色选项的SWT FontDialog (在我们的应用程序中,颜色是独立于字体配置的)?

解决方案

Eclipse bug 35890
$ $ p

$ p> fontDialog.setEffectsVisible(false);

但是当我尝试在Mac上使用它时,报告中显示

 找不到符号方法setEffectsVisible(boolean)

不会编译。只有Windows?也许吧?


How to show the SWT FontDialog without the color option (in our application colors are configured independent of the font)?

解决方案

Eclipse bug 35890 discusses this option, and it is labelled as fixed.

There is a new method :

 fontDialog.setEffectsVisible(false);

but when I try to use it on a Mac this is reporting

 cannot find symbol method setEffectsVisible(boolean)

and will not compile. Windows only? Maybe?

这篇关于SWT:没有颜色选择器的FontDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 00:10