有人可以为Delphi推荐一个颜色选择器组件吗? [英] Can someone recommend a colour picker component for Delphi?

查看:190
本文介绍了有人可以为Delphi推荐一个颜色选择器组件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Delphi寻找(最好是免费)的组件,用户可以轻松选择大约100种不同的颜色。



我目前有一个作为DevExpress的编辑,但它只有大约20种正确的颜色可供选择,一些其他的Windows颜色,如clHighlight,clBtnFace等。



这是普通用户,所以想避免要求他们手动选择RGB值。



与MS Paint中的颜色选择器类似的东西可能会起作用,或列出X11 / web颜色的东西:



http://en.wikipedia.org/wiki/Web_Colors



所以,如果您有任何建议,请通知我。



感谢大家的建议 p>

所有的建议都很好,我没有意识到可以调用MS Paint颜色对话框,这就是我需要的,是最简单的解决方案。感谢

解决方案

TColorDialog有什么问题?

它给你标准的Windows颜色对话框,与MSPaint相同...

添加这些选项以直接展开并显示所有颜色。

 对象ColorDialog1:TColorDialog 
选项= [cdFullOpen,cdAnyColor]
end


I'm looking for a (preferably free) component for Delphi for users to easily select about 100 different colours.

I've currently got one as part of DevExpress's editors, but it only has about 20 proper colours to choose, with a bunch of other 'Windows' colours like clHighlight, clBtnFace, etc.

It's for regular users, so would like to avoid requiring them to manually select RGB values.

Something similar to the colour picker in MS Paint might work, or something that lists X11/web colours:

http://en.wikipedia.org/wiki/Web_Colors

So, please let me know if you got any recommendations.

Thanks for the suggestions from everyone

All of the suggestions were good, I didn't realise the MS Paint colour dialog can be called, that's all I needed and is the simplest solution. Thanks

解决方案

What's wrong with the TColorDialog?
It gives you the standard Windows color dialog, exactly the same as in MSPaint...
Add these options to show it directly expanded and with all colors available.

object ColorDialog1: TColorDialog
  Options = [cdFullOpen, cdAnyColor]
end

这篇关于有人可以为Delphi推荐一个颜色选择器组件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆