mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +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_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;
|
||||
|
Loading…
Reference in New Issue
Block a user