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 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 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. 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 ?! 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 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?! 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 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 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 }; } 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now