Martijn Laan преди 1 месец
родител
ревизия
6d938335cd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Components/BitmapButton.pas

+ 1 - 1
Components/BitmapButton.pas

@@ -176,7 +176,7 @@ begin
 
 
   var R := ClientRect;
   var R := ClientRect;
 
 
-  if Focused then begin
+  if Focused and (SendMessage(Handle, WM_QUERYUISTATE, 0, 0) and UISF_HIDEFOCUS = 0) then begin
     { See TBitBtn.DrawItem in Vcl.Buttons.pas }
     { See TBitBtn.DrawItem in Vcl.Buttons.pas }
     Canvas.Pen.Color := clWindowFrame;
     Canvas.Pen.Color := clWindowFrame;
     Canvas.Brush.Style := bsSolid;
     Canvas.Brush.Style := bsSolid;