Vcl.Forms.TCustomForm.Paint
Delphi
procedure Paint; dynamic;
C++
DYNAMIC void __fastcall Paint();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Generates an OnPaint event.
The form component calls Paint in response to the WM_PAINT message (sent when the window needs to be painted) before rendering all controls on the form.
The default Paint method calls any event handler attached by the user to the OnPaint event. Override Paint to block the OnPaint event or to draw additional features before or after the OnPaint event.