mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:39:14 +02:00
parent
7b1b83e91a
commit
2d1eaa0ddf
@ -6668,6 +6668,13 @@ begin
|
|||||||
',',FBoundsRealized.Right-FBoundsRealized.Left,
|
',',FBoundsRealized.Right-FBoundsRealized.Left,
|
||||||
'x',FBoundsRealized.Bottom-FBoundsRealized.Top]);
|
'x',FBoundsRealized.Bottom-FBoundsRealized.Top]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$IFDEF VerboseBug16184}
|
||||||
|
DebugLn(['TWinControl.WMMove A ',DbgSName(Self),' Message=',Message.XPos,',',Message.YPos,
|
||||||
|
' BoundsRealized=',FBoundsRealized.Left,',',FBoundsRealized.Top,
|
||||||
|
' FromIntf=',Message.MoveType=Move_SourceIsInterface,
|
||||||
|
',',FBoundsRealized.Right-FBoundsRealized.Left,
|
||||||
|
'x',FBoundsRealized.Bottom-FBoundsRealized.Top]);
|
||||||
|
{$ENDIF}
|
||||||
NewWidth := Width;
|
NewWidth := Width;
|
||||||
NewHeight := Height;
|
NewHeight := Height;
|
||||||
if Message.MoveType = Move_SourceIsInterface then
|
if Message.MoveType = Move_SourceIsInterface then
|
||||||
@ -6726,6 +6733,10 @@ begin
|
|||||||
DebugLn(['TWinControl.WMSize A ',Name,':',ClassName,' Message=',Message.Width,',',Message.Height,
|
DebugLn(['TWinControl.WMSize A ',Name,':',ClassName,' Message=',Message.Width,',',Message.Height,
|
||||||
' BoundsRealized=',dbgs(FBoundsRealized),' FromIntf=',(Message.SizeType and Size_SourceIsInterface)>0]);
|
' BoundsRealized=',dbgs(FBoundsRealized),' FromIntf=',(Message.SizeType and Size_SourceIsInterface)>0]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$IFDEF VerboseBug16184}
|
||||||
|
DebugLn(['TWinControl.WMSize A ',Name,':',ClassName,' Message=',Message.Width,',',Message.Height,
|
||||||
|
' BoundsRealized=',dbgs(FBoundsRealized),' FromIntf=',(Message.SizeType and Size_SourceIsInterface)>0]);
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
NewLeft:=Left;
|
NewLeft:=Left;
|
||||||
NewTop:=Top;
|
NewTop:=Top;
|
||||||
@ -7990,6 +8001,9 @@ begin
|
|||||||
{$IFDEF VerboseNewAutoSize}
|
{$IFDEF VerboseNewAutoSize}
|
||||||
DebugLn(['TWinControl.DoSendShowHideToInterface ',DbgSName(Self),' FBoundsRealized=',dbgs(FBoundsRealized),' New=',HandleObjectShouldBeVisible]);
|
DebugLn(['TWinControl.DoSendShowHideToInterface ',DbgSName(Self),' FBoundsRealized=',dbgs(FBoundsRealized),' New=',HandleObjectShouldBeVisible]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$IFDEF VerboseBug16184}
|
||||||
|
DebugLn(['TWinControl.DoSendShowHideToInterface ',DbgSName(Self),' FBoundsRealized=',dbgs(FBoundsRealized),' New=',HandleObjectShouldBeVisible]);
|
||||||
|
{$ENDIF}
|
||||||
TWSWinControlClass(WidgetSetClass).ShowHide(Self);
|
TWSWinControlClass(WidgetSetClass).ShowHide(Self);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -8030,6 +8044,11 @@ begin
|
|||||||
' OldRelBounds=',dbgs(FBoundsRealized),
|
' OldRelBounds=',dbgs(FBoundsRealized),
|
||||||
' -> NewBounds=',dbgs(NewBounds));
|
' -> NewBounds=',dbgs(NewBounds));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$IFDEF VerboseBug16184}
|
||||||
|
DebugLn('[TWinControl.DoSendBoundsToInterface] A ',DbgSName(Self),
|
||||||
|
' OldRelBounds=',dbgs(FBoundsRealized),
|
||||||
|
' -> NewBounds=',dbgs(NewBounds));
|
||||||
|
{$ENDIF}
|
||||||
FBoundsRealized:=NewBounds;
|
FBoundsRealized:=NewBounds;
|
||||||
Include(FWinControlFlags,wcfBoundsRealized); // Note: set before calling widgetset, because used in WMSize
|
Include(FWinControlFlags,wcfBoundsRealized); // Note: set before calling widgetset, because used in WMSize
|
||||||
//if Parent=nil then DebugLn(['TWinControl.DoSendBoundsToInterface ',DbgSName(Self),' ',dbgs(BoundsRect)]);
|
//if Parent=nil then DebugLn(['TWinControl.DoSendBoundsToInterface ',DbgSName(Self),' ',dbgs(BoundsRect)]);
|
||||||
|
Loading…
Reference in New Issue
Block a user