arilotta Posted June 13, 2018 Share Posted June 13, 2018 Hi all, it seems that the MainModule option "boDisableMouseRightClick" does not affect UniHTMLMemo and UniDBHTMLMemo components. Even if I add that option, the context menu appears with right button click. Is there any workaround ? Thanks Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 13, 2018 Share Posted June 13, 2018 Hi, Have you tried this approach?: http://forums.unigui.com/index.php?/topic/10016-disable-unihtmlmemo-popup-menu/&do=findComment&comment=52146 Quote Link to comment Share on other sites More sharing options...
arilotta Posted June 20, 2018 Author Share Posted June 20, 2018 Hi Delphi Dev, sorry for the delay. I've tried the solution in the linked thread, unfortunately it does not seem to work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 20, 2018 Share Posted June 20, 2018 Hi, Can you make a simple testcase if possible ?! Quote Link to comment Share on other sites More sharing options...
arilotta Posted June 20, 2018 Author Share Posted June 20, 2018 Sure, here you are Delphi Dev, please find it in the attachment. I have also set "boDisableMouseRightClick" on MainModule, but the context menu still appears on UniHTMLMemo. Thanks Andrea UniGUIContextClickHTMLMemo.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 20, 2018 Share Posted June 20, 2018 Ok, Thanks for the testcase Which browser are you using?! Quote Link to comment Share on other sites More sharing options...
arilotta Posted June 20, 2018 Author Share Posted June 20, 2018 Hi Delphi Dev, Chrome. Andrea Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 20, 2018 Share Posted June 20, 2018 I will test it and let you know Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 20, 2018 Share Posted June 20, 2018 Can you also try this approach ? function initialize function initialize(sender, eOpts) { sender.iframeEl.el.dom.contentWindow.oncontextmenu=function(){ return false }; } Quote Link to comment Share on other sites More sharing options...
arilotta Posted June 20, 2018 Author Share Posted June 20, 2018 Yeeesss, it works ! Great Delphi Dev Thank you Andrea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.