diff --git a/docs/xml/lcl/editbtn.xml b/docs/xml/lcl/editbtn.xml index 911c9bb7a2..0e43785740 100644 --- a/docs/xml/lcl/editbtn.xml +++ b/docs/xml/lcl/editbtn.xml @@ -2251,14 +2251,14 @@ For example:
-Properties relevant to the dialog kind are copied into the dialog, and mat +Properties relevant to the dialog kind are copied into the dialog, and may include:
+For an open dialog, path information in FileName is retained if the path is +valid. This causes use of InitialDir to be disabled in the dialog. If the path +in Filename is invalid, only the base file name and extension are copied to the +dialog. An explicit value in InitialDir is resolved (cleaned and expanded) when +valid, and stored to the dialog. Otherwise, the initial directory is determined +by the widgetset when the dialog is executed. +
+CreateDialog is used in the implementation of the RunDialog method.
+InitialDir determines the first directory displayed when the +RunDialog method is called. InitialDir is resolved (cleaned and expanded) +before it is used during dialog execution. If FileName contains qualified path +information, the value in InitialDir is ignored; the path information in +FileName is used instead. When omitted (contains ''), the widgetset determines +the active directory when the dialog for the control is executed. +
++For a file open dialog, InitialDir is updated in the RunDialog method with the +value returned by the dialog. This occurs even when the Cancel button is used +to close the dialog. This mimics the behavior used in TOpenDialog. +
++Use FileName to assign the default file name (and optional path information) +used when the dialog is executed for the control. +
++Use the DialogOptions property to control whether the active directory can be +changed using the dialog for the control (ofNoChangeDir). +
+