[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TOpenOption

Options which can be used in a TOpenDialog instance.

Declaration

Source position: dialogs.pp line 185

type TOpenOption = (

  ofReadOnly,

  

Include read-only files.

  ofOverwritePrompt,

  

If selected file exists shows a message, that file will be overwritten.

  ofHideReadOnly,

  

Hide read only files.

  ofNoChangeDir,

  

Do not change the current directory.

  ofShowHelp,

  

Show a help button.

  ofNoValidate,

  

Disables file name validation using OFN_NOVALIDATE on the Windows platform. Allows file names with invalid characters.

  ofAllowMultiSelect,

  

Enables multi-selection in 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 selected path does not exist.

  ofFileMustExist,

  

Shows an error message if selected file does not exist.

  ofCreatePrompt,

  

Enables a verification prompt when a file or directory needs to be created for a file dialog.

  ofShareAware,

  

Includes the OFN_SHAREAWARE flag on the Windows platform.

  ofNoReadOnlyReturn,

  

Do not return 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 the OFN_EXPLORER and dependent flags in dialogs on the Windows platform.

  ofNoDereferenceLinks,

  

Do not resolve links while dialog is shown (only on Windows, see OFN_NODEREFERENCELINKS).

  ofNoResolveLinks,

  

Do not resolve links after Execute.

  ofEnableIncludeNotify,

  

Not used in the current LCL version.

  ofEnableSizing,

  

Dialog can be resized, e.g. via the mouse.

  ofDontAddToRecent,

  

Do not add the path to the history list.

  ofForceShowHidden,

  

Show hidden files.

  ofViewDetail,

  

Details are OS and interface dependent.

  ofAutoPreview

  

OS and interface dependent.

);

Description

TOpenOption contains a list of possible 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 the native dialog before it is executed.

Please note that some option values may not be available for a given platform where the LCL is supported: ofNoDereferenceLinks, ofOldStyleDialog, ofViewDetail, and ofAutoPreview.

See also

TOpenDialog.Options

  

Options to be used for this dialog.

TOpenOptions

  

Set type used to store TOpenOption enumeration values.


Version 3.2 Generated 2024-02-25 Home