[Lazarus] How to edit color value in Object inspector

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 14 13:33:47 CET 2015

On Sat, 14 Feb 2015 13:25:03 +0100
JuuS <JuuS at mykolab.ch> wrote:

> The problem was in the Object Inspector one cannot put value, one must
> use the drop down color picker. In the color picker one can only put a
> color in the form of #AABBCC. But what comes back from the Picker is a
> value in the form $00CCBBAA.

The color picker is the system color picker. It may use HTML notation,
which uses RGB or RRGGBB.
TColor uses BBGGRR.

> What one would want is to have the picker allow input that is the same
> as what as what the picker outputs, ja?

You can override the TColorPropertyEditor.
Either change the shown value to your system color picker, or implement your own color picker.


More information about the Lazarus mailing list