FMX.Forms.TCommonCustomForm.OnCreate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCreate: TNotifyEvent read FOnCreate write FOnCreate;

C++

__property System::Classes::TNotifyEvent OnCreate = {read=FOnCreate, write=FOnCreate};

Properties

Type Visibility Source Unit Parent
event public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

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