mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-02 08:56:04 +02:00
IDE: OI: disable moving controls onto frame
git-svn-id: trunk@18323 -
This commit is contained in:
parent
791e765929
commit
de02d06ad9
@ -182,8 +182,10 @@ begin
|
||||
begin
|
||||
AnObject := TObject(Node.Data);
|
||||
if (AnObject is TWinControl) and
|
||||
(csAcceptsControls in TWinControl(AnObject).ControlStyle) then
|
||||
begin
|
||||
(csAcceptsControls in TWinControl(AnObject).ControlStyle)
|
||||
and (TWinControl(AnObject).Owner<>nil) // TReader/TWriter only supports this
|
||||
and (TWinControl(AnObject).Owner.Owner=nil) // TReader/TWriter only supports this
|
||||
then begin
|
||||
AContainer := TWinControl(AnObject);
|
||||
AcceptContainer := True;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user