mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 11:58:12 +02:00
fix restored values, only need to be updated when LCL will realize new bounds, DoSetBounds also called from LM_MOVE and autosizing (issue #2016)
git-svn-id: trunk@9650 -
This commit is contained in:
parent
478828be8e
commit
f88cd92e06
@ -454,7 +454,7 @@ type
|
||||
procedure WndProc(var TheMessage : TLMessage); override;
|
||||
function VisibleIsStored: boolean;
|
||||
function ColorIsStored: boolean; override;
|
||||
procedure DoSetBounds(ALeft, ATop, AWidth, AHeight: integer); override;
|
||||
procedure DoSendBoundsToInterface; override;
|
||||
protected
|
||||
// drag and dock
|
||||
procedure DoDock(NewDockSite: TWinControl; var ARect: TRect); override;
|
||||
|
@ -929,9 +929,9 @@ begin
|
||||
Result:=(Color<>clBtnFace);
|
||||
end;
|
||||
|
||||
procedure TCustomForm.DoSetBounds(ALeft, ATop, AWidth, AHeight: integer);
|
||||
procedure TCustomForm.DoSendBoundsToInterface;
|
||||
begin
|
||||
inherited DoSetBounds(ALeft, ATop, AWidth, AHeight);
|
||||
inherited DoSendBoundsToInterface;
|
||||
if WindowState=wsNormal then begin
|
||||
FRestoredLeft:=Left;
|
||||
FRestoredTop:=Top;
|
||||
|
Loading…
Reference in New Issue
Block a user