Vcl.AxCtrls.TPropertyPage.OnPaint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnPaint;

C++

__property OnPaint;

Properties

Type Visibility Source Unit Parent
event published
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TPropertyPage

Description

Occurs when the form is redrawn.

Vcl.AxCtrls.TPropertyPage.OnPaint inherits from Vcl.Forms.TCustomForm.OnPaint. All content below this line refers to Vcl.Forms.TCustomForm.OnPaint.

Occurs when the form is redrawn.

Use OnPaint to perform special processing when the form is redrawn. Any special painting on the form should be done in this event. OnPaint occurs before any controls on the form are painted.

To determine which portions of the form's canvas need to be repainted, use the ClipRect property of the canvas.

If you use the form's Canvas property outside the OnPaint event, it will be erased and drawn-over by the next OnPaint event.

See Also

Code Examples