mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 04:39:22 +02:00
TSpeedButton: fixed painting disabled button from Darek
git-svn-id: trunk@9614 -
This commit is contained in:
parent
8cc91672fe
commit
92b44bf68e
@ -459,7 +459,7 @@ begin
|
|||||||
// ' DFCS_INACTIVE=',FLastDrawFlags and DFCS_INACTIVE,
|
// ' DFCS_INACTIVE=',FLastDrawFlags and DFCS_INACTIVE,
|
||||||
// ' DFCS_FLAT=',FLastDrawFlags and DFCS_FLAT,
|
// ' 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.Brush.Color := Color;
|
||||||
Canvas.FillRect(PaintRect);
|
Canvas.FillRect(PaintRect);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user