finished implementation of TWinControl.Repaint (fixes issue #1890)

git-svn-id: trunk@8968 -
This commit is contained in:
vincents 2006-03-20 19:13:16 +00:00
parent 2826cea395
commit 380fa81917

View File

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