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

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

问题描述

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

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

我目前有一个作为 DevExpress 编辑器的一部分,但它只有大约 20 种合适的颜色可供选择,还有一堆其他Windows"颜色,如 clHighlight、clBtnFace 等.

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.

它适用于普通用户,因此希望避免要求他们手动选择 RGB 值.

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

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

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.

感谢大家的建议

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

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

推荐答案

TColorDialog 出了什么问题?
它为您提供标准的 Windows 颜色对话框,与 MSPaint 中的完全相同...
添加这些选项以直接展开并显示所有颜色.

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天全站免登陆