Mega Code Archive

 
Categories / Delphi / LAN Web TCP
 

How to disable the Popupmenu in TWebbrowser

Title: How to disable the Popupmenu in TWebbrowser procedure TfrmMyBrowser.ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean); begin if (Msg.Message = WM_RBUTTONDOWN) or (Msg.Message = WM_RBUTTONDBLCLK) then begin if IsChild(Webbrowser1.Handle, Msg.hwnd) then begin // Show your own Popupor or whatever you want here Handled := True; end; end; end;