Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TWinControl.Brush

The Brush used to paint the background for the control.

Declaration

Source position: controls.pp line 2264

public property TWinControl.Brush : TBrush
  read GetBrush;

Description

Brush is a read-only TBrush property which provides the tool used to paint the interior of the control. The value in Brush is allocated and configured in the CreateBrush method, called when the value for the property is read but has not been assigned.

The Color property in Brush is updated when a new value is assigned to the Color property in the control.

Brush is used in the EraseBackground method and provides the Handle used to draw the background rectangle for the control.

See also

TWinControl.CreateBrush

  

Creates the Brush, if not already created.

TWinControl.EraseBackground

  

Fills the display rectangle for the control with the color and pattern in Brush.

TControl.Color

  

The background color of the control.

TBrush

  

The Brush to be used to Paint on the current Canvas.



CT Web help

CodeTyphon Studio