mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 07:55:59 +02:00
lcl: formatting
git-svn-id: trunk@21710 -
This commit is contained in:
parent
223dbe1d03
commit
105e4d8032
@ -590,7 +590,7 @@ begin
|
||||
FRestoredHeight := Height;
|
||||
//DebugLn('[TCustomForm.WMSize] saving restored bounds ',DbgSName(Self),' ',dbgs(FRestoredWidth),'x',dbgs(FRestoredHeight));
|
||||
end;
|
||||
End;
|
||||
end;
|
||||
|
||||
procedure TCustomForm.CMBiDiModeChanged(var Message: TLMessage);
|
||||
var
|
||||
|
@ -6465,7 +6465,7 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TWinControl.WMMove(var Message: TLMMove);
|
||||
var
|
||||
NewWidth, NewHeight: integer;
|
||||
NewWidth, NewHeight: Integer;
|
||||
begin
|
||||
{$IFDEF VerboseSizeMsg}
|
||||
DebugLn(['TWinControl.WMMove A ',DbgSName(Self),' Message=',Message.XPos,',',Message.YPos,
|
||||
@ -6474,18 +6474,19 @@ begin
|
||||
',',FBoundsRealized.Right-FBoundsRealized.Left,
|
||||
'x',FBoundsRealized.Bottom-FBoundsRealized.Top]);
|
||||
{$ENDIF}
|
||||
NewWidth:=Width;
|
||||
NewHeight:=Height;
|
||||
if Message.MoveType=Move_SourceIsInterface then begin
|
||||
NewWidth := Width;
|
||||
NewHeight := Height;
|
||||
if Message.MoveType = Move_SourceIsInterface then
|
||||
begin
|
||||
// interface widget has moved
|
||||
// -> update size and realized bounds
|
||||
NewWidth:=FBoundsRealized.Right-FBoundsRealized.Left;
|
||||
NewHeight:=FBoundsRealized.Bottom-FBoundsRealized.Top;
|
||||
NewWidth := FBoundsRealized.Right-FBoundsRealized.Left;
|
||||
NewHeight := FBoundsRealized.Bottom-FBoundsRealized.Top;
|
||||
if HandleAllocated then
|
||||
GetWindowSize(Handle,NewWidth,NewHeight);
|
||||
FBoundsRealized:=Bounds(Message.XPos,Message.YPos,NewWidth,NewHeight);
|
||||
GetWindowSize(Handle, NewWidth, NewHeight);
|
||||
FBoundsRealized := Bounds(Message.XPos,Message.YPos,NewWidth,NewHeight);
|
||||
end;
|
||||
SetBoundsKeepBase(Message.XPos,Message.YPos,NewWidth,NewHeight,Parent<>nil);
|
||||
SetBoundsKeepBase(Message.XPos, Message.YPos, NewWidth, NewHeight, Parent <> nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user