Sign in Join
FPDoc Onlineexperiment

TScreen.NewFormWasCreated procedure

Member of TScreenpublicIn unit Forms

Notifies handler(s) when a new form is created for the TScreen instance.

Declaration

pascal
procedure NewFormWasCreated(AForm: TCustomForm)

Arguments

AForm

Form instance that was created on the screen.

Description

NewFormWasCreated is method which notifies form handlers for the TScreen instance when a new form instance is created. It calls the NotifyScreenFormHandler method using the handler type for the notification and the TCustomForm instance in AForm as arguments. The screen form event is signalled for all registered handlers which use the snNewFormCreated screen notification type.

NewFormWasCreated is called at design-time from the source file manager in the Lazarus IDE. It is called immediately after a new form or datamodule type is created and added to the active project in the IDE. NewFormWasCreated is not called at run-time in the LCL, and has no relationship to when an instance of a form type is created in an application.

Added in LCL version 3.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.