RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.Paint Method

Generates an OnPaint event.

Pascal
procedure Paint; dynamic;
C++
__fastcall Paint();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!