Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Disable zoom in Eo.Webbrowser Options
Rasmus
Posted: Thursday, July 31, 2014 11:11:36 AM
Rank: Advanced Member
Groups: Member

Joined: 4/17/2014
Posts: 35
Is there any ways to disable zoom?
* ctrl + +/-
* ctrl + mousewheel

changing zoom back to 1 if event occurs is too slow...
Jack Cheng
Posted: Thursday, July 31, 2014 4:53:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

Unfortunately no. There is no way to disable zooming in the current build. We will consider adding this option though --- we understand that in special application it can be very useful.

Thanks!
Jack Cheng
Posted: Monday, August 4, 2014 11:51:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

We have posted a new build that added this feature. You can now set BrowserOptions.AllowZooming to false to disable zooming. For example, the following code would disable zooming for all WebViews:

Code: C#
//Call this code before creating any WebView will disable zooming for all WebViews
EO.WebBrowser.BrowserOptions options = new WebBrowser.BrowserOptions();
options.AllowZooming = false;
EO.WebBrowser.Runtime.SetDefaultOptions(options);


The above code sets the default zooming options. You can also set the browser options on individual WebView. See here for more details:

http://www.essentialobjects.com/doc/6/advanced/browser_options.aspx

Please see your private message for the download location of the new build.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.