TForm.OnCreate

From Free Pascal wiki
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.