OnPaint event (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Classes::TNotifyEvent OnPaint

Delphi Syntax

OnPaint: TNotifyEvent

Overview

Refer to Detecting Events.

Remarks

Occurs when part or all of the Main Control is exposed after it has been moved or enlarged, or after a window that was covering the control has been moved.

If the AutoRepaint property is set to TRUE, you do not have to write code for this event.

See Also

Elements:

OnScroll event

Topics:

Working with the Control: Client Area Usage