Sign in Join
FPDoc Onlineexperiment

TPaintBox.Paint procedure

Member of TPaintBoxprotectedIn unit ExtCtrls

Draws the content for the control.

Declaration

pascal
procedure Paint; override

Description

Paint is an overridden procedure used to draw the control.

At design-time, a dashed black line is drawn around the area for the control and across its opposing corners. Color is used to paint the background for the control. No other actions are performed in the method at design-time.

At run-time, the OnPaint event handler is used to render the content for the control using the Font and Color properties. Their values are assigned to the Canvas for the control, and the inherited Paint method is called to signal the event handler.

See also

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