Sign in Join
FPDoc Onlineexperiment

TDirectoryEdit.RunDialog procedure

Member of TDirectoryEditpublicIn unit EditBtn

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.