[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Initial directory displayed when the dialog is executed for the control.
Source position: editbtn.pas line 401
published property TFileNameEdit.InitialDir : string |
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).
|
FileName - the name of the selected file: either the initial value placed in the Text Box, or the value selected from the dialog. |
|
|
DialogOptions - set of options enabled for the file open dialog. |
|
|
Executes an Open or Save dialog for the DialogKind specified in the control. |
Version 4.0 | Generated 2025-05-03 | Home |