arilotta Posted June 13, 2018 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
Sherzod Posted June 13, 2018 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
arilotta Posted June 20, 2018 Author 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
Sherzod Posted June 20, 2018 Posted June 20, 2018 Hi, Can you make a simple testcase if possible ?! Quote
arilotta Posted June 20, 2018 Author 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
Sherzod Posted June 20, 2018 Posted June 20, 2018 Ok, Thanks for the testcase Which browser are you using?! Quote
Sherzod Posted June 20, 2018 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
arilotta Posted June 20, 2018 Author Posted June 20, 2018 Yeeesss, it works ! Great Delphi Dev Thank you Andrea Quote
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.