Vcl.Dialogs.ForceCurrentDirectory
Delphi
ForceCurrentDirectory: Boolean = False;
C++
extern DELPHI_PACKAGE bool ForceCurrentDirectory;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
variable | public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | Vcl.Dialogs |
Description
Indicates whether open and save dialogs should display the current directory if no initial directory is assigned.
ForceCurrentDirectory indicates how open and save dialogs should initialize the directory if the InitialDir property is not set to a valid directory. When ForceCurrentDirectory is True, the dialog opens with the current directory assigned. When ForceCurrentDirectory is False, the initial directory is either the current directory or the My Documents directory, depending on the version of Windows.