Browse Source

Check UISF_HIDEFOCUS.

Martijn Laan 1 month ago
parent
commit
6d938335cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Components/BitmapButton.pas

+ 1 - 1
Components/BitmapButton.pas

@@ -176,7 +176,7 @@ begin
 
   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 }
     Canvas.Pen.Color := clWindowFrame;
     Canvas.Brush.Style := bsSolid;