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

TOpenDialog.DoExecute

Performs actions needed to display the dialog and capture its result.

Declaration

Source position: dialogs.pp line 232

protected function TOpenDialog.DoExecute: Boolean; override;

Function result

True when the selected file(s) are valid and the method is successfully completed.

Description

DoExecute is an overridden Boolean function in TOpenDialog, and calls the inherited method on entry. It extends the execution loop for the dialog to use the Options enabled for the dialog, including:

ofNoResolveLinks
Calls ResolveLinks to follow symbolic links when ofNoResolveLinks has been omitted.
ofNoChangeDir
Updates the InitialDir property when a path in FileName or Files is changed and ofNoChangeDir has been omitted.

If execution of the inherited method was successfully completed, the CheckAllFiles method is called to validate the values in the FileName and Files properties.

The return value is True when all of these steps are successfully completed.

See also

TOpenDialog.Options

  

Options to be used for this dialog.

TOpenDialog.CheckAllFiles

  

Ensures that values in the FileName and Files properties are valid for the Options in the dialog.

TOpenDialog.ResolveLinks

  

Gets physical file names for symbolic links or file references.

TFileDialog.FileName

  

Contains the UTF-8-encoded name for a file chosen using the dialog.

TFileDialog.Files

  

Stores the names of files (or directories) selected using the dialog.

TCommonDialog.DoExecute

  

The function that actually takes care of executing the dialog.

TOpenOption

  

Options which can be used in a TOpenDialog instance.