I try to disable the right mouse button (context menu) in the Chromium Embedded window (DCEF3), but I do not get it, I did not find any settings to do this initially.
I can, for example, disable "View Source", I use the code below, but I really want to disable the context menu or do not want it to be displayed.
Note. I use this in the "Chromium.dll" libray DLL for use with the "Inno Setup" equal to Inno Web Brower.
procedure TInnoChromium.OnContextMenuCommand(Sender: TObject; const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; commandId: Integer; eventFlags: TCefEventFlags; out Result: Boolean); begin if (commandId = 132) then Result := True; // MENU_ID_VIEW_SOURCE end;
chromium-embedded inno-setup
D3F4ULT
source share