The IDE Object Inspector shows TColor properties with a drop-down ColorBox, and the color can be selected by name - clBlack etc, as defined in the Graphics unit. The problem is that the clWeb colors also defined in the Graphics unit are not present, and any custom colors I define are also not there.
So how do I extend the defined colors that are selectable in the Object Inspector?
PS Delphi XE
Color
property of other controls, besides the one you wrote? Is this a question about your custom component, or about how to add new colors in general? – GingeryclWeb
colors because it's really showing you all integer constants — you've just already typedcl
before you looked at the list.TColor
is just an integer; there's nothing inherently special about those constants. It's the built-inTColor
property editor that knows to display those specific values. – Gingery