mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 00:40:43 +01:00
easydockmgr: fixed eating exceptions
git-svn-id: trunk@24766 -
This commit is contained in:
parent
6591940026
commit
2c1ce4bb6d
@ -260,6 +260,7 @@ var
|
||||
r: TRect;
|
||||
Site: TFloatingSite absolute Result;
|
||||
Res: TWinControlAccess absolute AForm;
|
||||
ok: Boolean;
|
||||
begin
|
||||
Result := nil;
|
||||
AForm.DisableAlign;
|
||||
@ -282,11 +283,14 @@ begin
|
||||
img := TImage.Create(AForm); //we could own the img, and be notified when its parent becomes nil
|
||||
img.Align := alNone;
|
||||
//if ForIDE then
|
||||
ok:=false;
|
||||
try //begin //prevent problems with the following code!
|
||||
img.AnchorParallel(akRight,0,Result); //anchor to Result=Site or to AForm?
|
||||
img.AnchorParallel(akTop,0,Result);
|
||||
except
|
||||
DebugLn('error AnchorParallel');
|
||||
ok:=true;
|
||||
finally
|
||||
if not ok then
|
||||
DebugLn('error AnchorParallel');
|
||||
end;
|
||||
img.Anchors:=[akRight,akTop];
|
||||
img.Cursor := crHandPoint;
|
||||
@ -808,6 +812,7 @@ begin
|
||||
DebugLn('error WrapDockable: ' + Client.Name);
|
||||
if Client.HostDockSite <> Site then
|
||||
Site.Release;
|
||||
raise;
|
||||
end;
|
||||
//retry make client auto-dockable
|
||||
ctl.DragKind := dkDock;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user