Difference between revisions of "TForm.OnDestroy"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "== Overview == The '''OnDestroy''' event is used to perform special processing when the form is destroyed. Note that you can either implement this event or override the dest...")
 
m
 
Line 4: Line 4:
  
 
Note that you can either implement this event or override the destructor of the form; but do not do both.
 
Note that you can either implement this event or override the destructor of the form; but do not do both.
 +
 
This event should destroy any objects created in the OnCreate event.
 
This event should destroy any objects created in the OnCreate event.

Latest revision as of 14:44, 16 July 2022

Overview

The OnDestroy event is used to perform special processing when the form is destroyed.

Note that you can either implement this event or override the destructor of the form; but do not do both.

This event should destroy any objects created in the OnCreate event.