As discussed in another message thread. Here are some doc updates
which I have tested locally. See attached patch file.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml
index 3a17a99..260e6b6 100644
--- a/docs/xml/lcl/forms.xml
+++ b/docs/xml/lcl/forms.xml
@@ -1959,8 +1959,19 @@ biHelp - When you click this button a Question Cursor appears and the help routi
       <element name="TModalResult">
         <short>
           <var>TModalResult</var> - the range of values that can be returned as a modal result</short>
-        <descr/>
-        <seealso/>
+        <descr>
+          <var>TModalResult</var> represents the value returned by a modal dialog. Even though the type is defined as an integer, instead a few standard constants are used as return results in applications.</descr>
+        <seealso>
+          <link id="controls.mrNone"/>
+          <link id="controls.mrOK"/>
+          <link id="controls.mrCancel"/>
+          <link id="controls.mrAbort"/>
+          <link id="controls.mrRetry"/>
+          <link id="controls.mrIgnore"/>
+          <link id="controls.mrYes"/>
+          <link id="controls.mrNo"/>
+          <link id="controls.mrAll"/>
+        </seealso>
       </element>
       <!-- pointer type Visibility: default -->
       <element name="PModalResult">
diff --git a/docs/xml/lcl/stdctrls.xml b/docs/xml/lcl/stdctrls.xml
index a6d0fea..bfe1b66 100644
--- a/docs/xml/lcl/stdctrls.xml
+++ b/docs/xml/lcl/stdctrls.xml
@@ -7415,15 +7415,15 @@ is done automatically by the streaming system.
       </element>
       <!-- property Visibility: public -->
       <element name="TCustomButton.ModalResult">
-        <short>Is a Modal Result awaited? (default is false)</short>
-        <descr/>
+        <short>Determines whether the button closes its modal parent form.</short>
+        <descr>The default value is <link id="controls.mrNone">mrNone</link>.</descr>
         <seealso/>
       </element>
       <!-- property Visibility: public -->
       <element name="TCustomButton.Cancel">
         <short>Is this the Cancel button? (default setting is False)</short>
         <descr>
-          <p>Setting this property to true, will have the effect that when the user hits ESC this button is Clicked, even if the button does not have focus. Usually the Button which reacts to ESC sets the ModalResult of the form to mrCancel.</p>
+          <p>Setting this property to true, will have the effect that when the user hits ESC this button is Clicked, even if the button does not have focus. Usually the Button which reacts to ESC sets the ModalResult of the form to <link id="controls.mrCancel">mrCancel</link>.</p>
         </descr>
       </element>
       <!-- property Visibility: public -->
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to