diff --git a/docs/xml/lcl/dialogs.xml b/docs/xml/lcl/dialogs.xml
index 0b45adff5d..33c5f2dd59 100644
--- a/docs/xml/lcl/dialogs.xml
+++ b/docs/xml/lcl/dialogs.xml
@@ -5909,55 +5909,68 @@ Added in LCL version 4.0.
-DoExecute is a dynamic Boolean function used to
-initialize and execute the task dialog. It ensures that the index for the
-default Buttons and RadioButtons are updated before executing the task
-dialog. It also builds the delimited list of captions for each of the items
-in Buttons and RadioButtons. The lists use the format needed for the task
-dialog wrapper (#10 is the delimiter). Values in Flags are examined and
-converted to the constants used in the task dialog wrapper.
+DoExecute is a Boolean function used to initialize and
+execute the task dialog form. It is called from the Execute method and uses the
+handle in ParentWnd as the parent form for the task dialog.
-Property values are copied to the members in the TTaskDialog instance,
-including:
+DoExecute sets the default values for properties used as return values for the
+dialog like ModalResult (mrNone) and QueryResult (''). It calls the Execute
+method in the widgetset class instance to perform the actions needed for the
+platform. On Windows Vista and later versions, this causes the native routines
+in the Win32 Task Dialog API to be called. For other platforms, including
+Windows versions prior to Vista, the emulated task dialog in TLCLTaskDialog is
+used in the widget.
+
+Use the Flags property to specify which features or behaviors are enabled on
+the task dialog form.
+
+DoExecute captures various return values from the widgetset class. These
+include:
-DoExecute calls the Execute method in the TTaskDialog wrapper. The return
-value is True if the ModalResult value contains a valid button
-identifier defined in the Buttons for the dialog.
-
-DoExecute is called from the Execute method.
+The return value is False if the button identifier returned from the
+widget is a negative value. The return value is True if the dialog form
+was successfully displayed, and a valid button identifier was used to close the
+form - including when Esc, Alt+F4 or the Cancel button is used.
-
-Modified in LCL 4.0 to use tfNoSetForeGround and tfSizeToContent when included -in the flag values. +Implementation modified in LCL 4.0.
Execute is an overloaded Boolean function used to
-display the dialog and capture the modal result value using the wrapper in
-the
-Execute calls the DoExecute method to convert property values in
-the class instance to the values expected in the TTaskDialog
-record, and execute the dialog using the
+The return value is True if the dialog was successfully displayed and a +valid button identifier was clicked to close the dialog - including when Esc, +Alt+F4 or the Cancel button is used. +
+OnButtonClicked is a TTaskDlgClickEvent property with the event handler signalled (when assigned) after a button is clicked on the task -dialog during execution. It is signalled from the DoOnButtonClicked method. +dialog during execution. It is signalled from the DoOnButtonClicked method.
Arguments passed to the TTaskDlgClickEvent event handler include the
@@ -7674,7 +7703,7 @@ and includes additional features not found in previous versions.