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

# TCustomTaskDialog.Destroy

Destructor for the class instance.

## Declaration

Source position: dialogs.pp line 812

`public destructor TCustomTaskDialog.Destroy; override;`

## Description

Destroy is the overridden destructor for the class instance. It frees resources allocated for the Buttons, RadioButtons, QueryChoices, CustomFooterIcon, CustomMainIcon, and ProgressBar properties. It calls the inherited method prior to exit.

## See also

TCustomTaskDialog.Buttons |  | Collection with the buttons for the Task dialog.
TCustomTaskDialog.RadioButtons |  | Collection with the optional radio buttons defined for the Task dialog.
TCustomTaskDialog.QueryChoices |  | Predefined values for the query control on the task dialog.
TCustomTaskDialog.CustomFooterIcon |  | Contains a custom icon displayed in the footer area on the dialog.
TCustomTaskDialog.CustomMainIcon |  | Contains a custom icon displayed in the main content area on the dialog.
TCustomTaskDialog.ProgressBar |  | Contains information used to configure and update a progress bar enabled on the task dialog.