OnCreate

From Free Pascal wiki
Revision as of 13:34, 16 July 2022 by Mario13 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.