Hi team,
When I create a widget, I can’t enable native browser’s right click. I tried to set .EnableNativeContextMenu = true; or .Eval(“this.setNativeContextMenu(true);”);
In wisej JS source code I can see that you call this.setNativeContextMenu(true); in constructor of some components, so I just can’t figure out how to call this function properly, please help, but it doesn’t work in any possible way for me. Example:
[ToolboxBitmap(typeof(MyNewWrapper))]
[Description(“Input is a lightweight, free, and open source terminal for the web.”)]
public class MyNewWrapper: Widget, IWisejControl
{
public MyNewWrapper()
{
this.EnableNativeContextMenu = true; // doesn’t work
this.Eval(“this.setNativeContextMenu(true);”); // doesn’t work
}
…other code…
}
(P.S. if I use the similar code for a panel that uses the widget, it also doesn’t work, like panel.EnableNativeContextMenu = true;)
Regards, Michael
Hi,
the next Wisej build will include Widget.EnableNativeContextMenu.
This enhancement request is logged as issue #2191
Best regards
Frank
Hi Frank,
Thanks for update. What WiseJ version will it be at least approximately?
Michael
Hi Michael,
enhancement #2191 is included in Wisej development build 2.1.48.
Best regards
Frank
Please login first to submit.