From c875cc8f8ef1a8d3f79432727a3656cb4f255ce4 Mon Sep 17 00:00:00 2001 From: dsiders Date: Sun, 23 Jan 2022 18:27:27 +0000 Subject: [PATCH] Docs: LCL/forms. Fixes error in GetParentForm topic from issue #39591. --- docs/xml/lcl/forms.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml index 14fafb1b9f..6329fe68e3 100644 --- a/docs/xml/lcl/forms.xml +++ b/docs/xml/lcl/forms.xml @@ -13891,7 +13891,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint'); Control is the TControl instance examined in the method. The Parent property is used to navigate to preceding parent controls until a TCustomForm instance is found.

- TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False (the default), the first TCustomForm instance found in the control hierarchy is used. Otherwise, all Parent controls in the hierarchy are examined until a Parent control has not been assigned. + TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False, the first TCustomForm instance found in the control hierarchy is used. Otherwise, all Parent controls in the hierarchy are examined until a Parent control has not been assigned.

The return value can contain the value in Control if it is a TCustomForm descendant and no other form instances are used in the control hierarchy. This is Delphi compatible.