Class TRgbColorProperty (unit ColorEd) |
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 |
Update all the hidden, child property editors, if any.
Properties |
Events |
Variables |
Constructors |
Functions |
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.
When the parent's color changes, make sure all the child objects change to match.
list of hidden child components
Update all the hidden, child property editors, if any.
Properties |
Events |
Variables |