Docs: LCL/forms. Updates TCustomForm.Monitor to reflect use of the Owner form instead of the application main form when Position is poOwnerFormCenter. Changes in bc857823. Issue #41377.

This commit is contained in:
dsiders 2025-01-30 19:52:24 -05:00
parent ca16a22cea
commit 4feac3a6f1

View File

@ -8370,7 +8370,9 @@ the enumeration values and their meanings.
</element> </element>
<element name="TCustomForm.Monitor"> <element name="TCustomForm.Monitor">
<short>Contains the Monitor where the form is shown.</short> <short>
Returns the Monitor where the form is shown.
</short>
<descr> <descr>
<p> <p>
<var>Monitor</var> is a read-only <var>TMonitor</var> property which contains <var>Monitor</var> is a read-only <var>TMonitor</var> property which contains
@ -8408,8 +8410,9 @@ used as the monitor where the form is located.
</dd> </dd>
<dt>poOwnerFormCenter</dt> <dt>poOwnerFormCenter</dt>
<dd> <dd>
When Owner is a different TCustomForm instance than the current class, the When Owner is both assigned and a different TCustomForm instance than the
monitor in TApplication.MainForm is used. current class, the Monitor property in Owner is used. Otherwise, the value
from GetDefaultMonitor is used as the Monitor for the form instance.
</dd> </dd>
</dl> </dl>
<p> <p>
@ -8435,10 +8438,12 @@ poDefaultPosOnly.
<link id="TCustomForm.DefaultMonitor"/> <link id="TCustomForm.DefaultMonitor"/>
<link id="Screen"/> <link id="Screen"/>
<link id="TScreen"/> <link id="TScreen"/>
<link id="Application"/> <link id="TApplication.MainForm"/>
<link id="TApplication"/> <link id="TApplication"/>
<link id="Application"/>
<link id="TMonitor"/> <link id="TMonitor"/>
<link id="GetParentForm"/> <link id="GetParentForm"/>
<link id="#rtl.classes.TComponent.Owner">TComponent.Owner</link>
</seealso> </seealso>
</element> </element>