WebView - Edge - Chrome - right button

WebView - Edge - Chrome - right button

Postby Ari » Mon Jul 17, 2023 3: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 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 234
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: WebView - Edge - Chrome - right button

Postby Antonio Linares » Mon Jul 17, 2023 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: WebView - Edge - Chrome - right button

Postby Ari » Mon Jul 17, 2023 5: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 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 234
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: WebView - Edge - Chrome - right button

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: WebView - Edge - Chrome - right button

Postby Ari » Tue Jul 18, 2023 12:40 pm

OK,

thank you very much.
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 234
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests