B4J Question disable context menu in webview

Discussion in 'B4J Questions' started by Fabio Fabozzi, Feb 19, 2015.

  1. Fabio Fabozzi

    Fabio Fabozzi Member Licensed User

    Hi,

    I'm finding a way to disable the context menu from the webview control in bj4. Althought the designer provides a checkbox to enable and disable, this option doesn't work. Any suggestion is welcome. Thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use this code:
    Code:
    Dim jo As JavaObject = WebView1
    jo.RunMethod(
    "setContextMenuEnabled"Array(False))
     
  3. Fabio Fabozzi

    Fabio Fabozzi Member Licensed User

    Thank You very much Erel. This snippet suits my needs.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice