How prevent href title attribute show over transparent Form?

42 Views Asked by At

I have these two code that makes a Form transparent.

 Form1.AlphaBlend := True;
 SetWindowLong(Form1.Handle, GWL_EXSTYLE, GetWindowLong(Form1.Handle,GWL_EXSTYLE) or WS_EX_TRANSPARENT or WS_EX_LAYERED);

type
  TForm1 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
     protected
      procedure CreateParams(var Params: TCreateParams); override; 
  end;

// AlphaBlend := True;
  procedure TForm1.CreateParams(var Params: TCreateParams);
  begin
  inherited CreateParams(Params);
  Params.ExStyle := Params.ExStyle or WS_EX_TOPMOST or WS_EX_TRANSPARENT;
  Params.ExStyle := WS_EX_TRANSPARENT or WS_EX_TOPMOST;
  end;

When mouse is over a link with a title attribute, this appear over transparent Form. How prevent this behavior?

enter image description here

0

There are 0 best solutions below