Jump to content
uniGUI Discussion Forums
arilotta

Disabling context menu on UniHTMLMemo

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

Hi Delphi Dev, sorry for the delay. I've tried the solution in the linked thread,

unfortunately it does not seem to work.

Share this post


Link to post
Share on other sites

Hi,

 

Can you make a simple testcase if possible ?!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Ok,

 

Thanks for the testcase

 

Which browser are you using?!

Share this post


Link to post
Share on other sites

Can you also try this approach ?

 

function initialize

function initialize(sender, eOpts)
{
    sender.iframeEl.el.dom.contentWindow.oncontextmenu=function(){
        return false
    };
}

Share this post


Link to post
Share on other sites

Yeeesss, it works ! 

Great Delphi Dev

 

Thank you

Andrea

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×