SOLVED: Disable popup menu on LazReport preview lazarus / 16-Databases ---------------------------------------------------------------------- SaraT · 2020-02-07 07:42 Hi folks I would like to disable the popup menu on LazReport preview (see image below). Do you know the code to do this? Please help me. Many thanks ---------------------------------------------------------------------- balazsszekely · 2020-02-07 14:20 @SaraT QuoteI would like to disable the popup menu on LazReport preview (see image below). Do you know the code to do this? Please help me. Unfortunately that popup menu is hard coded. To remove it, open package lazreport, then open unit lr_view. Go to line 573 and replace: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if THackControl(Preview.PreviewPanel.Parent).PopupMenu = nil then  ProcMenu.Popup(pt.x, pt.y) else  THackControl(Preview.PreviewPanel.Parent).PopupMenu.Popup(pt.x, pt.y);with  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   if THackControl(Preview.PreviewPanel.Parent).PopupMenu <> nil then     THackControl(Preview.PreviewPanel.Parent).PopupMenu.Popup(pt.x, pt.y); Rebuild the package then the IDE.