Skip to main content
A newer version of this page is available. .

TdxCustomColorDialog.CustomColors Property

Specifies a set of custom colors available in the color editor dialog.

Declaration

property CustomColors: TStrings read; write;

Property Value

Type
TStrings

Remarks

This property stores custom colors as strings. The string format is ColorX=BBGGRR (ColorX=AABBGGRR if the Options.ColorPicker.AllowEditAlpha property is set to True), where X ranges from A to P and the color value is represented by a hexadecimal color code.

At design time, you can customize the string list stored by the CustomColors property using the standard VCL string editor. To open it, switch to the Object Inspector and click the ellipsis button next to the CustomColors property. The following image shows the string editor populated with sample strings that are compatible with the Options.ColorPicker.AllowEditAlpha property set to True.

Note

Set the Options.AllowEditColor property to True to allow end-users to add custom colors to the set at runtime.

See Also