procedure ApplicationEvents1Message(var Msg: tagMSG;
       var Handled: Boolean);
procedure TDownForm.ApplicationEvents1Message(var Msg: tagMSG;
  var Handled: Boolean);
begin
  Handled := False;
  if IsChild(Wb.Handle, Msg.Hwnd) and
     ((Msg.Message = WM_RBUTTONDOWN) or (Msg.Message = WM_RBUTTONUP)) then
  begin
    Handled:=True;
  end;
end;
procedure TDownForm.FormCreate(Sender: TObject);
begin
  Application.OnMessage := ApplicationEvents1Message;
end;
procedure TDownForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Application.OnMessage := nil;
end;