Reference Codebot.Forms.ColorDialog.pas
Part of the Codebot Controls package
The Codebot.Forms.ColorDialog unit gives you TAdvancedColorDialog, a dialog for picking a color and its opacity. Set Color and Alpha before calling Execute, and read them after it returns True.
The dialog has a hue and saturation picker, an alpha picker, and slide edits that switch between red, green, and blue and hue, saturation, and lightness. A grid of common colors sits on the right, and below it the color is shown as text you can edit, in Delphi, HTML, or CSS form. A row of custom colors along the bottom is saved between uses. Click one to use it, or right click it to store the current color there.
The unit also gives you ColorToDelphiText, ColorToHtmlText, ColorToRgbaText, and TextToColor, which convert colors to and from text.
Items 44 items
| Name | Kind | Line |
|---|---|---|
| ColorToDelphiText | function | 210 |
| ColorToHtmlText | function | 213 |
| ColorToRgbaText | function | 215 |
| TAdvancedColorDialog | class | 182 |
| Create | constructor | 192 |
| Execute | function | 194 |
| Alpha | property | 201 |
| Color | property | 199 |
| ColorValue | property | 196 |
| CustomColorsFile | property | 206 |
| Title | property | 203 |
| TAdvancedColorDialogForm | class | 104 |
| Create | constructor | 162 |
| DoShow | procedure | 159 |
| LoadCustomColors | procedure | 164 |
| SaveCustomColors | procedure | 166 |
| ColorValue | property | 169 |
| CustomColorsFile | property | 172 |
| TColorSlideMode | enum | 102 |
| csmRgb | enum value | 102 |
| csmHsl | enum value | 102 |
| TColorSwatchGrid | class | 32 |
| CellRect | function | 69 |
| Create | constructor | 61 |
| Draw | procedure | 58 |
| IndexAt | function | 67 |
| MouseLeave | procedure | 57 |
| MouseMove | procedure | 54 |
| MouseUp | procedure | 55 |
| SetCellSize | procedure | 65 |
| SetColors | procedure | 63 |
| Colors | property | 73 |
| Columns | property | 75 |
| Count | property | 71 |
| FitWidth | property | 78 |
| OnSelect | property | 84 |
| OnSwatchRightClick | property | 86 |
| Selectable | property | 82 |
| Selected | property | 80 |
| TColorTextMode | enum | 101 |
| ctmDelphi | enum value | 101 |
| ctmHtml | enum value | 101 |
| ctmRgba | enum value | 101 |
| TextToColor | function | 219 |