TCustomShape.Brush property
The Brush used to fill the shaped control.
Declaration
property Brush: TBrush read FBrush write SetBrush;Description
Brush is a
TBrush property which contains the attributes
used to fill the shaped control. Its Color property can be used to control the
fill color for the shaped control. Its Style property determines whether the
fill Color is opaque or transparent.
Resources allocated to Brush are managed by the class instance in the Create and Destroy methods. Setting a new value for the property causes Invalidate to be called to redraw the control.
Brush and Pen are used in the DrawToCanvas method, and in UpdateMask when the internal mask image is created for the shaped control.
Use Pen to set attributes applied to the lines drawn for the Shape on the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
