[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TApplication.CreateForm

Creates a Form or component, owned by Application.

Declaration

Source position: forms.pp line 1454

public procedure TApplication.CreateForm(

  InstanceClass: TComponentClass;

  out Reference

);

Arguments

InstanceClass

  

The component class.

Reference

  

The variable receiving the new component reference.

Description

Note: The name is confusing and only kept for Delphi compatibility. It can actually create any kind of component.

Creates a Component instance of the given class, sets the pointer to the component variable.

If it is a form it will be added to the application's forms list.

A splash form is shown immediately.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.