[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCoolBand.ParentColor

Indicates if the Color in the Parent control (TCoolBar) is used for the band.

Declaration

Source position: comctrls.pp line 2521

published property TCoolBand.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

TCoolBand.Color

  

Background color for the band.

TCoolBand.Bitmap

  

Bitmap image displayed for the band.

TCoolBand.ParentBitmap

  

Indicates if the Bitmap for the TCoolBar control is used as the background for the band.

TCustomCoolBar.Paint

  

Draws the visible bands for the control on its Canvas.

TControl.Color

  

The background color for the control.


Version 4.0 Generated 2025-05-03 Home