lcl: formatting

git-svn-id: trunk@21710 -
This commit is contained in:
paul 2009-09-15 08:58:57 +00:00
parent 223dbe1d03
commit 105e4d8032
2 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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;
{------------------------------------------------------------------------------