Hi guys,
i am trying to build a browser for touch screen purposes and i have ended up with the following,
as you all know, a right-click pop-up appears if you press the touch for few seconds while using the browser.
I am wondering,
is it possible to disable this completely?
if yes,
how?
is it called Context menu or what?
Many thanks in advance
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Disable right-click on touch screen
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Disable right-click on touch screen
Hi,
I added a couple of missing references at :
https://www.briskbard.com/index.php?lang=en&pageid=cef
There you can find all the links to CEF3 API Docs used by TChromium.
In your case, open the CefContextMenuHandler link and read the OnBeforeContextMenu event comments.
I added a couple of missing references at :
https://www.briskbard.com/index.php?lang=en&pageid=cef
There you can find all the links to CEF3 API Docs used by TChromium.
In your case, open the CefContextMenuHandler link and read the OnBeforeContextMenu event comments.
Re: Disable right-click on touch screen
Thanks Salvador!
I have checked and found this,
http://magpcss.org/ceforum/apidocs3/
What i want to do is to completely disable the right-click menu. I don't want any part of it.
Is this what you mean?
{procedure TfrmMain.chromiumMainBeforeContextMenu(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
const params: ICefContextMenuParams; const model: ICefMenuModel);
begin
Model.Clear;
end;}
I have checked and found this,
http://magpcss.org/ceforum/apidocs3/
What i want to do is to completely disable the right-click menu. I don't want any part of it.
Is this what you mean?
{procedure TfrmMain.chromiumMainBeforeContextMenu(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
const params: ICefContextMenuParams; const model: ICefMenuModel);
begin
Model.Clear;
end;}
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Disable right-click on touch screen
Indeed
Works like a charm!
Many thanks and many thanks for bringing this component alive again.
With best regards

Works like a charm!

Many thanks and many thanks for bringing this component alive again.
With best regards