Docs: LCL/dialogs. Updates topics for changes in 7d4a36a2, including:

* TOpenOption.ofExtensionDifferent
* TOpenDialog.CheckFile
* TOpenDialog.DoExecute
This commit is contained in:
dsiders 2023-08-31 01:11:55 +01:00
parent b37a724265
commit 9325968f3d

View File

@ -1389,7 +1389,9 @@ Allows file names with invalid characters.
<element name="TOpenOption.ofExtensionDifferent"> <element name="TOpenOption.ofExtensionDifferent">
<short> <short>
Indicates that a non-blank extension which differs from the default extension Indicates that a non-blank extension which differs from the default extension
was entered using a file open dialog. was entered using a file open dialog. Included in the option values if the
condition occurs during execution of a dialog. Specifically excluded from the
options prior to executing a dialog.
</short> </short>
</element> </element>
<element name="TOpenOption.ofPathMustExist"> <element name="TOpenOption.ofPathMustExist">
@ -1714,6 +1716,10 @@ extension when AFilename does not already include one. The file extension is
appended to the value in AFilename. appended to the value in AFilename.
</p> </p>
<p> <p>
Options is updated to include the value ofExtensionDifferent if a non-blank
extension was entered that does not match the value in the DefaultExt property.
</p>
<p>
Values in Options are used to determine if the file name is usable, including: Values in Options are used to determine if the file name is usable, including:
</p> </p>
<dl> <dl>
@ -1850,9 +1856,14 @@ Performs actions needed to display the dialog and capture its result.
<descr> <descr>
<p> <p>
<var>DoExecute</var> is an overridden <var>Boolean</var> function in <var>DoExecute</var> is an overridden <var>Boolean</var> function in
<var>TOpenDialog</var>, and calls the inherited method on entry. It extends <var>TOpenDialog</var>. It ensures that the value ofExtensionDifferent is
the execution loop for the dialog to use the Options enabled for the dialog, excluded from Options prior to executing the dialog. The value will be included
including: in the CheckFile method if a file extension is entered that does not match the
DefaultExt property.
</p>
<p>
DoExecute calls the inherited method, and extends the execution loop
for the dialog to use the Options enabled for the dialog including:
</p> </p>
<dl> <dl>
<dt>ofNoResolveLinks</dt> <dt>ofNoResolveLinks</dt>
@ -1879,6 +1890,7 @@ completed.
<seealso> <seealso>
<link id="TOpenDialog.Options"/> <link id="TOpenDialog.Options"/>
<link id="TOpenDialog.CheckAllFiles"/> <link id="TOpenDialog.CheckAllFiles"/>
<link id="TOpenDialog.CheckFile"/>
<link id="TOpenDialog.ResolveLinks"/> <link id="TOpenDialog.ResolveLinks"/>
<link id="TFileDialog.FileName"/> <link id="TFileDialog.FileName"/>
<link id="TFileDialog.Files"/> <link id="TFileDialog.Files"/>