Class TRgbColorProperty (unit ColorEd)

Inherits from

TColorProperty

The master property editor is TRgbColorProperty. It inherits from TColorProperty, to inherit the drop-down list of color names, and the edit dialog box. It adds only subproperties.

Constructors



Functions

destructor Destroy;


function GetAttributes: TPropertyAttributes;


procedure GetProperties(Proc: TGetPropEditProc);

When the Object Inspector requests the subproperties, it is time for TRgbColorProperty to do its thing.

procedure SetColor(Value: TColor);


procedure SetValue(const Value: string);

When the parent's color changes, make sure all the child objects change to match.

procedure SetChildColors;

list of hidden child components

Update all the hidden, child property editors, if any.


Properties

Events

Variables

ChildList : TComponentList;



Constructors


Functions


destructor Destroy;


function GetAttributes: TPropertyAttributes;


procedure GetProperties(Proc: TGetPropEditProc);

When the Object Inspector requests the subproperties, it is time for TRgbColorProperty to do its thing. Create a hidden TRgbKludge object to parallel each component that is currently selected. Note that TComponentList is intended to hold a list of components, but TRgbKludge is just a TPersistent subclass. This causes no harm, but it requires a few explicit type casts. Future versions of Delphi might cause this to be aproblem, in which case you would need to derive TRgbKludge from TComponent, and filter out the Name and Tag propertis.


procedure SetColor(Value: TColor);


procedure SetValue(const Value: string);

When the parent's color changes, make sure all the child objects change to match.


procedure SetChildColors;

list of hidden child components

Update all the hidden, child property editors, if any.


Properties


Events


Variables


ChildList : TComponentList;