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

TCommonDialog.Close

Closes the dialog and frees its resources.

Declaration

Source position: dialogs.pp line 123

public procedure TCommonDialog.Close; virtual;

Description

Close is a method used to perform actions needed to close the dialog. This can include signalling the OnClose event handler (when assigned and used for the platform). Close frees the widgetset Handle allocated for the dialog.

No actions are performed in the method if a Handle is not allocated for the dialog, or the Close method has already been called.

Close is called from the Execute method when the DoExecute method has been completed, and occurs before the active form is re-enabled and focused.

See also

TCommonDialog.Execute

  

Displays the dialog and captures the result.

TCommonDialog.DoExecute

  

The function that actually takes care of executing the dialog.

TCommonDialog.Handle

  

Contains the handle for the dialog form.

TCommonDialog.OnClose

  

Event handler signalled when the dialog is closed.


Version 4.0 Generated 2025-05-03 Home