Sign in Join
FPDoc Onlineexperiment

TCustomForm.Loaded procedure

Member of TCustomFormprotectedIn unit Forms

Performs actions when the component has been loaded using the LCL streaming mechanism.

Declaration

pascal
procedure Loaded; override

Description

Loaded is an overridden method in TCustomForm.

It disables alignment in the form, and adjusts the PixelsPerInch setting for the Font when it differs from the design-time setting. It is performed when Scaled is enabled for the form and the Application. This action is also performed for any child Controls. Calls the inherited Loaded method, and re-enables alignment for the form instance.

Ensures that the ActiveControl (when assigned) can receive focus. ActiveControl is set to Nil if the control cannot be focused for the form instance. Sets the Visible property to True when FormState contains the value fsVisible.

See also

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