TForm.OnCreate: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: TForm.OnCreate
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## Overview | |
| 2 | + | ||
| 3 | + | The **OnCreate** event is used to perform special processing when the form is created and is invoked by TCustomForm's constructor. | |
| 4 | + | ||
| 5 | + | Note that you can either implement this event or override the constructor of the form; but do not do both. | |
| 6 | + | ||
| 7 | + | Any objects created in the OnCreate event should be freed by the OnDestroy event. | |
| 8 | + | ||
| 9 | + | --- | |
| 10 | + | *From the Free Pascal wiki, page "TForm.OnCreate", as it stood on 2022-07-16 after a change by Mario13, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
