Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can someone recommend a colour picker component for Delphi?

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

like image 850
Robo Avatar asked Nov 11 '08 02:11

Robo


People also ask

For what purpose can we use the pick Colour tool?

A color picker is used to select and adjust color values. In graphic design and image editing, users typically choose colors via an interface with a visual representation of a color—organized with quasi-perceptually-relevant hue, saturation and lightness dimensions (HSL) – instead of keying in alphanumeric text values.

How do you code a color picker?

To add a color picker in an HTML page, use an <input> tag with type = 'color' . The initial value can be set using the value property. This value needs to be set in hexadecimal because colors are represented as six-digit hexadecimal values following a hashtag ( # ).

Which option is used to pick the Colour from any object?

Use the eyedropper tool The eyedropper tool allows you to select and sample colors from any object or image in a file. Use the eyedropper to identify colors and apply them to your layers.


2 Answers

Delphi Gems' Color Picker control, maybe?

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

like image 163
moobaa Avatar answered Sep 21 '22 15:09

moobaa


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
like image 34
Francesca Avatar answered Sep 23 '22 15:09

Francesca