From d6d91c0ccb065d371aa1927a340717d08528f686 Mon Sep 17 00:00:00 2001 From: michl Date: Sun, 21 Mar 2021 19:43:24 +0000 Subject: [PATCH] DockedFormEditor: Only designer selectable controls can be used in AnchorDesigner git-svn-id: trunk@64852 - --- components/dockedformeditor/source/dockedanchordesigner.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dockedformeditor/source/dockedanchordesigner.pas b/components/dockedformeditor/source/dockedanchordesigner.pas index 2c1d96253e..0ab24cf3a1 100644 --- a/components/dockedformeditor/source/dockedanchordesigner.pas +++ b/components/dockedformeditor/source/dockedanchordesigner.pas @@ -407,7 +407,8 @@ begin end; LAnchorControl.Validate; LAnchorControl.Visible := True; - if AControl is TWinControl then + if (AControl is TWinControl) + and not (csOwnedChildrenNotSelectable in AControl.ControlStyle) then begin LWinControl := TWinControl(AControl); for i := 0 to LWinControl.ControlCount - 1 do