Can someone recommend a colour picker component for Delphi?

折月煮酒 提交于 2019-12-30 09:32:51

问题


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


回答1:


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



回答2:


Delphi Gems' Color Picker control, maybe?

http://www.soft-gems.net/index.php/controls/color-picker-control




回答3:


Give mbColor Lib from MXS a go. Perhaps the most comprehensive set of color picking components for Delphi. MXS Components




回答4:


There was an article about creating a custom colour selection component in issue 3 of the blaise pascal magazine.

http://www.blaisepascal.eu/blaisepascal_3/color_selection_component_david_dirkse.php



来源:https://stackoverflow.com/questions/279822/can-someone-recommend-a-colour-picker-component-for-delphi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!