From 28c9e339ab6e4de08d0ee54524784750decb51ac Mon Sep 17 00:00:00 2001 From: dsiders Date: Fri, 4 Apr 2025 01:07:49 -0400 Subject: [PATCH] Docs: LCL/dialogs. Updates TOpenOption topics for changes in 9f23efb4c4. Issue #41564. * Modifies: * TOpenOption * TOpenOption.ofReadOnly * TOpenOption.ofHideReadOnly * TOpenOption.ofNoReadOnlyReturn * TOpenOption.ofOldStyleDialog --- docs/xml/lcl/dialogs.xml | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/docs/xml/lcl/dialogs.xml b/docs/xml/lcl/dialogs.xml index b9c7a2974f..d201ecd808 100644 --- a/docs/xml/lcl/dialogs.xml +++ b/docs/xml/lcl/dialogs.xml @@ -1344,26 +1344,33 @@ The Sender argument is the dialog instance for the event notification.

TOpenOption contains a list of possible options which can be used -in an Open dialog. Values from the enumeration are stored in the +in Open or Save dialogs. 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. +property in TOpenDialog and descendent classes. 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. Some option values are +included or excluded to represent the actions performed when the native dialog +was 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. +where the LCL is supported. The help for the option values indicate the +platforms where the value is relevant.

+ + -Include read-only files. +For the Windows platform, it causes the Read Only check box to be selected +initially when the dialog box is created. It is also used as a flag to +indicate the state of the Read Only check box when the dialog box is closed. +For QT-based platforms, it indicates that the entire dialog model is read-only. @@ -1372,7 +1379,10 @@ If selected file exists shows a message, that file will be overwritten. -Hide read only files. + +For the Windows platform, it hides the Read Only check box on the dialog. Not +used in other widgetsets. + Do not change the current directory. @@ -1415,7 +1425,15 @@ Includes the OFN_SHAREAWARE flag on the Windows platform. -Do not return file names that are read-only. + +For the Windows platform, it indicates the Read Only check box is not selected +for the returned file, the file is writable, and is not in a write-protected +directory. In TOpenDialog, an error message is displayed if the selected file +does not meet the criteria when ofNoReadOnlyReturn is included in dialog +options. See TOpenDialog.CheckFile. In TSaveDialog, it indicates that +read-only items cannot be returned by the dialog. This is the default value +for a Save dialog. Not used for other widgetsets. + @@ -1437,7 +1455,8 @@ dialogs ignore this flag and always display long file names. Prevents use of the OFN_EXPLORER and dependent flags in dialogs on the -Windows platform. +Windows platform. Also controls whether the Read Only check box is visible on +native dialogs.