Hi,
I want to disable default zoom functionality on GoView while scrolling mouse scroll button with pressing Ctrl key.
How can i do it?
Thanks & Regards
Navneet
Hi,
[code] [Serializable]
public class NoZoomToolManager : GoToolManager {
public NoZoomToolManager(GoView view) : base(view) { }
public override void DoMouseWheel() {
if (this.LastInput.Control) return; // ignore wheel events when modified by Control key
base.DoMouseWheel();
}
}[/code]
Replace the standard GoToolManager by:
goView1.Tool = goView1.DefaultTool = new NoZoomToolManager(goView1);