TCoolBand.ParentColor property
Indicates if the Color in the Parent control (TCoolBar) is used for the band.
Declaration
property ParentColor: Boolean read FParentColor write SetParentColor default True;Description
ParentColor is a
Boolean property which controls the
Color used to fill the background for the band. When ParentColor is set to
True, the Color property from the parent control (TCoolBar) is used to
fill the background for the band. When set to
False, the Color property
in the band is used as the background color. The default value for the
property is
True.
Changing the value for the property causes the Changed method to be called to update the item in the bands collection for the parent control (TCoolBar). Please note that ParentColor is automatically set to False when an explicit value is assigned to the Color property.
ParentColor and Color are used in the Paint method in TCustomCoolBar when the band is rendered on the canvas for the parent control.
Use Bitmap and ParentBitmap to enable use of a bitmap graphic as the background for the band.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
