FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour WebView - Edge - Chrome - right button
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
WebView - Edge - Chrome - right button
Posted: Mon Jul 17, 2023 03:46 PM

Hello,

Is it possible to block the use of the right mouse button using the WebView?

What if WebView only works with Microsoft Edge?

with Chrome does it work?

Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: WebView - Edge - Chrome - right button
Posted: Mon Jul 17, 2023 05:07 PM
Dear Ari,

> Is it possible to block the use of the right mouse button using the WebView?

Yes, we can implement a new method to do it. It is not currently implemented.

ICoreWebView2Settings* settings; // a reminder for me :-)
controller->get_Settings(&settings);
settings->put_AreDefaultContextMenusEnabled(FALSE);

> What if WebView only works with Microsoft Edge?

Yes, WebView is developed by Microsoft and uses the Microsoft required DLLs.

> with Chrome does it work?

No, sorry. Chrome does not provide something similar yet.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: WebView - Edge - Chrome - right button
Posted: Mon Jul 17, 2023 05:31 PM

ok antonio

let's wait..

I present a DashBoard on a public link and I can't let them see the server address for security reasons

Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: WebView - Edge - Chrome - right button
Posted: Tue Jul 18, 2023 10:04 AM
Dear Ari,

I have tried to implement it and the code seems ok and builds ok but it does not work as expected,
so I have opened a new issue for it:

https://github.com/webview/webview/issues/951

There you can see the proposed code. Lets see what they say :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: WebView - Edge - Chrome - right button
Posted: Tue Jul 18, 2023 12:40 PM

OK,

thank you very much.

Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br

Continue the discussion