Vcl.Forms.TCustomForm.OldCreateOrder

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OldCreateOrder: Boolean read FOldCreateOrder write FOldCreateOrder;

C++

__property bool OldCreateOrder = {read=FOldCreateOrder, write=FOldCreateOrder, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Specifies when OnCreate and OnDestroy events occur.

When OldCreateOrder is false (the default) the OnCreate event occurs after all constructors are finished and the OnDestroy event occurs before any destructors are called.

This differs from earlier versions of the library (distributed with Delphi version 3 and previous and C++Builder 1), where the OnCreate event occurred when the TCustomForm constructor executed and the OnDestroy event occurred when the TCustomForm destructor executed. Applications that require the OnCreate event and OnDestroy events to occur from the constructor and destructor of the form can set OldCreateOrder to true.

See Also