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

TCustomForm.DoDestroy

Signals the OnDestroy event handler for the form instance.

Declaration

Source position: forms.pp line 649

protected procedure TCustomForm.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

TCustomForm.OnDestroy

  

Handler called when the form is destroyed.

TCustomForm.HandleDestroyException

  

Placeholder for exception handlers in derived classes.

TCustomForm.BeforeDestruction

  

Performs actions before the form instance is physically freed.

TCustomForm.Hide

  

Hides the control by setting the Visible property to False.

TCustomForm.Menu

  

The main menu for the form instance.

Screen

  

The TScreen singleton for the application.

TScreen

  

Provides information about screen displays in an application.

Application

  

The TApplication singleton.

TApplication

  

Application management and configuration for a GUI application.


Version 3.2 Generated 2024-02-25 Home