Sign in Join
FPDoc Onlineexperiment

TCustomShape.Paint procedure

Member of TCustomShapepublicIn unit ExtCtrls

Draws the shape for the control on its Canvas.

Declaration

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

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