Sign in Join
FPDoc Onlineexperiment

TPaintBox.OnPaint property

Member of TPaintBoxpublishedIn unit ExtCtrls

Event handler signalled to paint the control.

Declaration

pascal
property OnPaint:;

Description

OnPaint is a TNotifyEvent with the event handler signalled to paint the control. Applications must implement and assign a routine to the event handler to perform the drawing operation. TGraphicControl does not provide a default drawing mechanism.

Use the Canvas for the control to perform drawing operations. The Font and Brush in Canvas are automatically configured to use values assigned to the corresponding properties in the control. BorderStyle, however, is not automatically applied. Use the Pen in Canvas as needed to draw the BorderStyle for the control.

OnPaint is signalled (when assigned) from the Paint method.

This description is the one of Controls.TGraphicControl.OnPaint.

See also

  • Canvas
  • Paint
  • Font
  • Color
  • BorderStyle

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