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

TCustomShape.Paint

Draws the shape for the control on its Canvas.

Declaration

Source position: extctrls.pp line 297

public procedure TCustomShape.Paint; override;

Description

Paint is an overridden procedure used to draw the shape for the control on its Canvas. Paint uses the Pen, Brush, and Shape defined in the control. Drawing methods in Canvas are called to render the desired Shape to a rectangle using the Width and Height defined in the component.

Paint calls the inherited Paint method to signal an OnPaint event handler assigned in the class instance.

See also

TCustomShape.Pen

  

The Pen used to draw lines on the shaped control.

TCustomShape.Brush

  

The Brush used to fill the shaped control.

TGraphicControl.Canvas

TShapeType

  

TShapeType is an enumerated type with values representing standard geometric shapes.

TGraphicControl.Paint

  

Implements the default handler used to draw the control.


Version 4.0 Generated 2025-05-03 Home