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

TShape.Paint

Draws the shape for the control on its Canvas.

Declaration

Source position: extctrls.pp line 283

public procedure TShape.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

TShape.Pen

  

The Pen to be used for drawing this shape.

TShape.Brush

  

The Brush to be used for coloring this shape.

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 3.2 Generated 2024-02-25 Home