Sign in Join
FPDoc Onlineexperiment

TCustomForm.BeforeDestruction procedure

Member of TCustomFormpublicIn unit Forms

Performs actions before the form instance is physically freed.

Declaration

pascal
procedure BeforeDestruction; override

Description

Calls the inherited method on entry to signal any OnBeforeDestruction event handlers assigned to the form instance.

Removes the form instance from the list of focused forms in the Screen singleton. At run-time, the Hide method is called when the form is not a MDI child form in the application. If the form is a MDI child form, merged menu items are removed from the menu in the MainForm for the Application.

See also

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