TSpeedButton: fixed painting disabled button from Darek

git-svn-id: trunk@9614 -
This commit is contained in:
mattias 2006-07-14 22:48:31 +00:00
parent 8cc91672fe
commit 92b44bf68e

View File

@ -459,7 +459,7 @@ begin
// ' DFCS_INACTIVE=',FLastDrawFlags and DFCS_INACTIVE,
// ' DFCS_FLAT=',FLastDrawFlags and DFCS_FLAT,
// '');
if not Transparent and (color<>clBtnFace) then begin
if (not Transparent) and Enabled and (Color<>clBtnFace) then begin
Canvas.Brush.Color := Color;
Canvas.FillRect(PaintRect);
end;