bug 1152: added debug code

git-svn-id: trunk@11437 -
This commit is contained in:
mattias 2007-07-06 13:41:29 +00:00
parent 12b5287922
commit d81144b51a
2 changed files with 6 additions and 1 deletions

View File

@ -2510,7 +2510,9 @@ begin
and not (csNoDesignVisible in ControlStyle)))
then begin
Rect := BoundsRect;
//DebugLn(['TControl.InvalidateControl Rect=',dbgs(Rect)]);
{$IFDEF VerboseBug1152}
DebugLn(['TControl.InvalidateControl ',DbgSName(Self),' Rect=',dbgs(Rect)]);
{$ENDIF}
InvalidateRect(Parent.Handle, @Rect, not (CtrlIsOpaque or
(csOpaque in Parent.ControlStyle) or BackgroundClipped));
end;

View File

@ -486,6 +486,9 @@ var
SIndex : Longint;
TMP : String;
begin
{$IFDEF VerboseBug1152}
DebugLn(['TCustomSpeedButton.Paint ',DbgSName(Self)]);
{$ENDIF}
UpdateState(false);
if FGlyph=nil then exit;