开发者

How to preload custom colors in SWT ColorDialog

开发者 https://www.devze.com 2022-12-11 15:14 出处:网络
my application users the SWT Color Cell Editor to set a color property.This class in turn users the native color dialog - which offers preset and custom colors.

my application users the SWT Color Cell Editor to set a color property. This class in turn users the native color dialog - which offers preset and custom colors.

My users are frustrated because whilst the color dialog allows them to enter custom colors, the application doesn't remember these custom colors (in either Win32 or OSX).

Does anybody know of a way 开发者_如何转开发to pre-load native cell color selector dialogs with a set of custom colors?

cheers, Ian


There is no API for this. See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=21812


It appears this bug has been fixed in Eclipse 3.8:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212023

And it only took 5 years ;-)

0

精彩评论

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

关注公众号