FMX.Forms.TForm.OnCreate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCreate: TNotifyEvent read FOnCreate write FOnCreate;

C++

__property OnCreate;

Properties

Type Visibility Source Unit Parent
event published
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TForm

Description

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