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

TDirectoryEdit.RunDialog

Executes the dialog for the control and stores the return value.

Declaration

Source position: editbtn.pas line 502

public procedure TDirectoryEdit.RunDialog; virtual;

Description

RunDialog is a procedure used to execute the dialog for the control, and to store the selected directory name in the control. RunDialog calls CreateDialog to create and configure the dialog executed in the method. When the dialog has completed successfully, GetDialogResult is called to capture the selected directory name.

When assigned, the OnAcceptDirectory event handler is signalled to accept or reject the selected directory name. When rejected, the return value is ignored. When accepted, the value returned from the dialog is stored in the Directory property.

RunDialog is used in the implementation of the ButtonClick method.

See also

TDirectoryEdit.CreateDialog

  

Creates and configures the dialog for the control.

TDirectoryEdit.GetDialogResult

  

Gets the result from the specified dialog.

TDirectoryEdit.Directory

  

The Directory selected by the dialog.

TDirectoryEdit.OnAcceptDirectory

  

OnAcceptDirectory - event handler for accepting the name of a directory.

TDirectoryEdit.ButtonClick

  

Implements the button handler for the Button in the control.

TCommonDialog

  

The base type from which other dialogs are derived.

TSelectDirectoryDialog

  

Implements a select directory dialog.


Version 4.0 Generated 2025-05-03 Home