mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 21:59:18 +02:00
finished implementation of TWinControl.Repaint (fixes issue #1890)
git-svn-id: trunk@8968 -
This commit is contained in:
parent
2826cea395
commit
380fa81917
@ -3981,11 +3981,8 @@ Begin
|
|||||||
if csDesigning in ComponentState then
|
if csDesigning in ComponentState then
|
||||||
DebugLn('TWinControl.Repaint A ',Name,':',ClassName);
|
DebugLn('TWinControl.Repaint A ',Name,':',ClassName);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{ TODO: check what to do with LM_PAINT message, neither gtk nor win32
|
Invalidate;
|
||||||
interface responded to it }
|
Update;
|
||||||
//CNSendMessage(LM_PAINT, Self, nil);
|
|
||||||
// Invalidate;
|
|
||||||
// Update;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
@ -5629,7 +5626,7 @@ begin
|
|||||||
' Cur='+dbgs(Width)+'x'+dbgs(Height)+
|
' Cur='+dbgs(Width)+'x'+dbgs(Height)+
|
||||||
' Client='+dbgs(OldClientRect.Right)+'x'+dbgs(OldClientRect.Bottom),
|
' Client='+dbgs(OldClientRect.Right)+'x'+dbgs(OldClientRect.Bottom),
|
||||||
' Adjusted='+dbgs(OldAdjustedClientRect),
|
' Adjusted='+dbgs(OldAdjustedClientRect),
|
||||||
' NewWidth='+dbgs(NewWidth)+' NewHeight=',+dbgs(NewHeight));
|
' NewWidth='+dbgs(NewWidth)+' NewHeight=',dbgs(NewHeight));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
PreferredWidth:=Max(PreferredWidth,NewWidth);
|
PreferredWidth:=Max(PreferredWidth,NewWidth);
|
||||||
PreferredHeight:=Max(PreferredHeight,NewHeight);
|
PreferredHeight:=Max(PreferredHeight,NewHeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user