mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 11:18:14 +02:00
Docs: LCL/dialogs. Updates the TOpenDialog.DoExecute topic for changes in a5b48a08
.
This commit is contained in:
parent
9325968f3d
commit
320c0da41d
@ -1716,10 +1716,6 @@ 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>
|
||||||
@ -1857,13 +1853,13 @@ Performs actions needed to display the dialog and capture its result.
|
|||||||
<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>. It ensures that the value ofExtensionDifferent is
|
<var>TOpenDialog</var>. It ensures that the value ofExtensionDifferent is
|
||||||
excluded from Options prior to executing the dialog. The value will be included
|
excluded from the Options property prior to executing the dialog. It calls the
|
||||||
in the CheckFile method if a file extension is entered that does not match the
|
inherited method (in TCommonDialog) to display the dialog form and to get the
|
||||||
DefaultExt property.
|
UserChoice used to complete execution of the dialog.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
DoExecute calls the inherited method, and extends the execution loop
|
DoExecute extends the execution loop for the dialog to use the Options enabled
|
||||||
for the dialog to use the Options enabled for the dialog including:
|
for the dialog, including:
|
||||||
</p>
|
</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>ofNoResolveLinks</dt>
|
<dt>ofNoResolveLinks</dt>
|
||||||
@ -1873,18 +1869,35 @@ Calls ResolveLinks to follow symbolic links when ofNoResolveLinks has been
|
|||||||
</dd>
|
</dd>
|
||||||
<dt>ofNoChangeDir</dt>
|
<dt>ofNoChangeDir</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Updates the InitialDir property when a path in FileName or Files is changed
|
Updates the InitialDir property when a path in FileName or Files has been
|
||||||
and ofNoChangeDir has been <b>omitted</b>.
|
changed and ofNoChangeDir has been <b>omitted</b>.
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p>
|
<p>
|
||||||
|
The return value is <b>True</b> when all of the steps are successfully
|
||||||
|
completed. The return value is <b>False</b> if any mechanism other than the OK
|
||||||
|
button was used to close the dialog.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
If execution of the inherited method was successfully completed, the
|
If execution of the inherited method was successfully completed, the
|
||||||
CheckAllFiles method is called to validate the values in the FileName and
|
CheckAllFiles method is called to validate the values in the FileName and
|
||||||
Files properties.
|
Files properties.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The return value is <b>True</b> when all of these steps are successfully
|
The return value is set to <b>True</b> if the selected FileName or Files is/are
|
||||||
completed.
|
valid for the dialog. Options is updated to exclude the value
|
||||||
|
ofExtensionDifferent when Files contains more than 1 (one) file entry. This
|
||||||
|
avoids the erratic behavior displayed when multiple file selections are enabled
|
||||||
|
and used on the dialog, and mimics the behavior used in Delphi 7.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
If a single file is selected on the dialog, and has an extension which does not
|
||||||
|
match the assigned value in DefaultExt, the value ofExtensionDifferent is
|
||||||
|
included in Options to indicate the condition.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
DoExecute is called from the Execute method in the TCommonDialog ancestor, and
|
||||||
|
occurs immediately before the Close method is called.
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -1895,7 +1908,9 @@ completed.
|
|||||||
<link id="TFileDialog.FileName"/>
|
<link id="TFileDialog.FileName"/>
|
||||||
<link id="TFileDialog.Files"/>
|
<link id="TFileDialog.Files"/>
|
||||||
<link id="TCommonDialog.DoExecute"/>
|
<link id="TCommonDialog.DoExecute"/>
|
||||||
|
<link id="TCommonDialog.Execute"/>
|
||||||
<link id="TOpenOption"/>
|
<link id="TOpenOption"/>
|
||||||
|
<link id="TOpenOptions"/>
|
||||||
</seealso>
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="TOpenDialog.DoExecute.Result">
|
<element name="TOpenDialog.DoExecute.Result">
|
||||||
|
Loading…
Reference in New Issue
Block a user