Sign in Join
FPDoc Onlineexperiment

TCustomControl.Paint procedure

Member of TCustomControlprotectedIn unit Controls

Implements the default handler used to draw the control.

Declaration

pascal
procedure Paint; virtual

Description

Paint is a method which causes the control to be drawn using the drawing mechanism for the control. In TCustomControl, like TGraphicControl, the OnPaint event handler is used (when assigned). Assign a routine to the OnPaint handler to perform the drawing operations needed for the control.

Paint called from the PaintWindow method, and occurs when a LM_PAINT message is handled for the control.

See also

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