mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 06:39:41 +02:00
LCL: TDragDockObject.HideDockImage check if something to hide
git-svn-id: trunk@26271 -
This commit is contained in:
parent
7f8a4f287d
commit
241c05aaae
@ -229,7 +229,7 @@ begin
|
||||
try
|
||||
// restore the layout
|
||||
// this will close unneeded forms and call OnCreateControl for all needed
|
||||
DockMaster.LoadLayoutFromConfig(XMLConfig);
|
||||
DockMaster.LoadLayoutFromConfig(XMLConfig,true);
|
||||
finally
|
||||
XMLConfig.Free;
|
||||
end;
|
||||
|
@ -147,14 +147,15 @@ end;
|
||||
|
||||
procedure TDragDockObject.HideDockImage;
|
||||
begin
|
||||
WidgetSet.DrawDefaultDockImage(EraseDockRect, DockRect, disHide);
|
||||
if FEraseDockRect.Left<MaxInt then
|
||||
WidgetSet.DrawDefaultDockImage(EraseDockRect, DockRect, disHide);
|
||||
FEraseDockRect := Rect(MaxInt, 0, MaxInt, 0);
|
||||
end;
|
||||
|
||||
procedure TDragDockObject.MoveDockImage;
|
||||
begin
|
||||
//Draw the form outlines when the position has changed
|
||||
if not CompareMem(@DockRect, @EraseDockRect, SizeOf(TRect)) then
|
||||
if not CompareRect(@DockRect, @EraseDockRect) then
|
||||
begin
|
||||
WidgetSet.DrawDefaultDockImage(EraseDockRect, DockRect, disMove);
|
||||
EraseDockRect := DockRect;
|
||||
|
Loading…
Reference in New Issue
Block a user