Sign in Join
FPDoc Onlineexperiment

TCustomForm.DoDestroy procedure

Member of TCustomFormprotectedIn unit Forms

Signals the OnDestroy event handler for the form instance.

Declaration

pascal
procedure DoDestroy; virtual

Description

DoDestroy is a method used to signal the OnDestroy event handlers assigned for the form instance. If an Exception occurs in the event handler, it is handled in the method when HandleDestroyException is set to True. When set to False, the exception is re-raised in the method.

DoDestroy is called from the BeforeDestruction method, and allows the application to perform actions needed before the form instance is physically freed. It is called after the form has been removed from the focus list for the Screen, hidden by calling the Hide method, and merged menu items have been removed from the MainForm for the Application.

See also

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