[Overview][Types][Classes][Procedures and functions][Index] |
The Brush used to fill the shaped control.
Source position: extctrls.pp line 299
public property TCustomShape.Brush : TBrush |
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.
|
The Pen used to draw lines on the shaped control. |
|
|
Constructor for the class instance. |
|
|
Destructor for the class instance. |
|
|
Draws the Shape for the control on the specified canvas. |
|
|
Updates the internal Monochrome bitmap used as a mask to detect mouse click events on the shaped control. |
|
|
The Brush to be used to Paint on the current Canvas. |
|
|
Causes a delayed Repaint of the control by marking its visible area of the control as invalid. |
Version 4.0 | Generated 2025-05-03 | Home |