BeniBela online


Color Dialog

A color choosing dialog for Delphi, supporting hls/rgb and showing the selected color channel. The form is in German (but it is easy to translate, since there are only a few nouns. Most of them are color channels, e.g. helligkeit=>brightness, rot=>red, ...)

changing brightness changing red


Just put farbe.pas, farbe.dfm and ExtraListView.pas somewhere in the unit search path.


The dialog can be created and shown like this:

colorManager.addToColorList('',vtCaptionH3);             //Create a header for the colors
colorManager.addToColorList('color1',vtValue,clRed);     //Create a color option with name color1 and default value clRed
colorManager.addToColorList('color2',vtValue,clBlue);    //Create a color option with name color2 and default value clBlue

addToColorList is needed to let the user choose multiple colors in groups.

After the dialog has been closed, you can get a changed color with


How to clone

You can clone this repository with
hg clone

directory / @ :dba49e1c603e

name size permissions
[up] drwxr-xr-x
dir. examples/ drwxr-xr-x
file ExtraListView.pas 5562 -rw-r--r--
file 1233 -rw-r--r--
file _hg.filemap 184 -rw-r--r--
file farbe.dfm 6964 -rw-r--r--
file farbe.pas 41774 -rw-r--r--
file 216 -rwxr-xr-x