Sign in Join
FPDoc Onlineexperiment

TWinControl.Brush property

Member of TWinControlpublicIn unit Controls

The Brush used to paint the background for the control.

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.