From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnCreate: TNotifyEvent read FOnCreate write FOnCreate;


__property OnCreate;


Type Visibility Source Unit Parent
event published
FMX.Forms TForm


Occurs when the form is created.

FMX.Forms.TForm.OnCreate inherits from FMX.Forms.TCommonCustomForm.OnCreate. All content below this line refers to FMX.Forms.TCommonCustomForm.OnCreate.

Occurs when the form is created.

Use OnCreate to perform special processing when the form is created and is invoked by the constructor. Either implement this event or override the constructor of the form; do not perform both actions. Any objects created in the OnCreate event should be freed by the OnDestroy event.

When a form is being created and its Visible property is True, the following events occur in the order listed:

  1. OnCreate
  2. OnActivate

See Also

Code Examples