Download Now
Forums

    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

    NameKindLine
    ColorToDelphiTextfunction210
    ColorToHtmlTextfunction213
    ColorToRgbaTextfunction215
    TAdvancedColorDialogclass182
    Createconstructor192
    Executefunction194
    Alphaproperty201
    Colorproperty199
    ColorValueproperty196
    CustomColorsFileproperty206
    Titleproperty203
    TAdvancedColorDialogFormclass104
    Createconstructor162
    DoShowprocedure159
    LoadCustomColorsprocedure164
    SaveCustomColorsprocedure166
    ColorValueproperty169
    CustomColorsFileproperty172
    TColorSlideModeenum102
    csmRgbenum value102
    csmHslenum value102
    TColorSwatchGridclass32
    CellRectfunction69
    Createconstructor61
    Drawprocedure58
    IndexAtfunction67
    MouseLeaveprocedure57
    MouseMoveprocedure54
    MouseUpprocedure55
    SetCellSizeprocedure65
    SetColorsprocedure63
    Colorsproperty73
    Columnsproperty75
    Countproperty71
    FitWidthproperty78
    OnSelectproperty84
    OnSwatchRightClickproperty86
    Selectableproperty82
    Selectedproperty80
    TColorTextModeenum101
    ctmDelphienum value101
    ctmHtmlenum value101
    ctmRgbaenum value101
    TextToColorfunction219