TOpenOption enumeration
Represents options available in a open dialog (TOpenDialog).
Declaration
TOpenOption = (ofReadOnly,ofOverwritePrompt,ofHideReadOnly,
ofNoChangeDir,ofShowHelp,ofNoValidate,ofAllowMultiSelect,
ofExtensionDifferent,ofPathMustExist,ofFileMustExist,
ofCreatePrompt,ofShareAware,ofNoReadOnlyReturn,
ofNoTestFileCreate,ofNoNetworkButton,ofNoLongNames,
ofOldStyleDialog,ofNoDereferenceLinks,
ofEnableIncludeNotify,ofEnableSizing,ofDontAddToRecent,
ofForceShowHidden)Description
TOpenOption contains the options which can be used
in an Open dialog. Values from the enumeration are stored in the
TOpenOptions set type which is used to implement the Options
property in TOpenDialog. When an option value is included in the set,
it is enabled during execution of the dialog. The values are applied to
a native dialog before it is executed.
Please note that some option values may not be available for a given platform: ofNoDereferenceLinks, ofOldStyleDialog, ofViewDetail, and ofAutoPreview.
See also
Values
ofReadOnly | Includes read-only files. |
ofOverwritePrompt | If the selected file exists, a message is displayed if the file will be overwritten. |
ofHideReadOnly | Hides read-only files. |
ofNoChangeDir | Prevents changing the current directory. |
ofShowHelp | Show a help button on the dialog. |
ofNoValidate | Disables file name validation using OFN_NOVALIDATE on the Windows platform. |
ofAllowMultiSelect | Enables multiple file name selection using a dialog. |
ofExtensionDifferent | Allows a file name with an extension which does not match the filters or default extension in a file dialog. |
ofPathMustExist | Shows an error message if the selected path does not exist. |
ofFileMustExist | Shows an error message if the selected/entered file name does not exist. |
ofCreatePrompt | Enables a verification prompt when a file or directory needs to be created. |
ofShareAware | Includes the OFN_SHAREAWARE flag on the Windows platform. |
ofNoReadOnlyReturn | Prevents returning file names that are read-only. |
ofNoTestFileCreate | Includes the OFN_NOTESTFILECREATE flag on the Windows platform. |
ofNoNetworkButton | Disables and hides the Network button on the Windows platform. |
ofNoLongNames | Disables long file names on the Windows platform. Used in classic-style dialogs to force use of file names using the 8.3 format. Explorer-style dialogs ignore this flag and always display long file names. |
ofOldStyleDialog | Prevents use of OFN_EXPLORER and dependent flags in dialogs on the Windows platform. |
ofNoDereferenceLinks | Do not resolve links while a dialog is shown (for Windows only, see OFN_NODEREFERENCELINKS). |
ofEnableIncludeNotify | Not currently in use. |
ofEnableSizing | Dialog can be resized using the mouse. |
ofDontAddToRecent | Prevents adding selection(s) to the history list. |
ofForceShowHidden | Causes hidden files to be displayed. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
