How to get Object Inspector to show more TColor property values?

The IDE object inspector shows TColor properties with a ColorBox drop-down, and the color can be selected by name - clBlack, etc., as defined in the Graphics block. The problem is that clWeb colors, also defined in the graphics module, are missing, and any custom colors that I define also don't exist.

So, how do I expand the specific colors that can be selected in the object inspector?

PS Delphi XE

+6
delphi delphi-xe components
source share
1 answer

I would try to get a class from TColorProperty (unit VCLEditors) and override GetValue / GetValues ​​/ SetValue. See here for a detailed discussion.

Edit: My original link is already broken. Try using Custom Colors in Delphi 7 (at borland.public.delphi.vcl.components.writing.general).

+1
source share

All Articles