TFileNameEdit.InitialDir property
Initial directory displayed when the dialog is executed for the control.
Declaration
property InitialDir: string read FInitialDir write FInitialDir;Description
InitialDir determines the first directory displayed when the
RunDialog method is called. InitialDir is resolved (cleaned and expanded)
before it is used during dialog execution. If FileName contains qualified path
information, the value in InitialDir is ignored; the path information in
FileName is used instead. When omitted (contains ''), the widgetset determines
the active directory when the dialog for the control is executed.
For a file open dialog, InitialDir is updated in the RunDialog method with the value returned by the dialog. This occurs even when the Cancel button is used to close the dialog. This mimics the behavior used in TOpenDialog.
Use FileName to assign the default file name (and optional path information) used when the dialog is executed for the control.
Use the DialogOptions property to control whether the active directory can be changed using the dialog for the control (ofNoChangeDir).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
