Difference between revisions of "TForm.OnCreate"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "== Overview == The '''OnCreate''' event is used to perform special processing when the form is created and is invoked by TCustomForm's constructor. Note that you can either...")
 
 
Line 4: Line 4:
  
 
Note that you can either implement this event or override the constructor of the form; but do not do both.
 
Note that you can either implement this event or override the constructor of the form; but do not do both.
 +
 
Any objects created in the OnCreate event should be freed by the OnDestroy event.
 
Any objects created in the OnCreate event should be freed by the OnDestroy event.

Latest revision as of 14:43, 16 July 2022

Overview

The OnCreate event is used to perform special processing when the form is created and is invoked by TCustomForm's constructor.

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

Any objects created in the OnCreate event should be freed by the OnDestroy event.