Usage of the method Zoom.Activate
Posted: Thu Feb 03, 2005 10:35 am
I try to make a zoom (+ 10%) of a chart, centered on the mouse position.
I write a routine (VB.NET) who receive the event "ClickBackground".
My questions are :
1. The zoom is always done at the center of the chart and not in function of the mouse position.
2. The zoom is done Horizontally and vertically although I ask only Horizontal.
My source code follow :
Private Sub MyChart_ClickBackground(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles MyChart.ClickBackground
MyChart.Chart.Zoom.Active = True
MyChart.Chart.Zoom.ZoomPercent(110)
MyChart.Chart.Zoom.Direction=Steema.TeeChart.ZoomDirections.Horizontal
MyChart.Chart.Zoom.Activate(e.X, e.Y)
Have somebody meet the same experience ?
What are the solutions ?
Tahnks
I write a routine (VB.NET) who receive the event "ClickBackground".
My questions are :
1. The zoom is always done at the center of the chart and not in function of the mouse position.
2. The zoom is done Horizontally and vertically although I ask only Horizontal.
My source code follow :
Private Sub MyChart_ClickBackground(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles MyChart.ClickBackground
MyChart.Chart.Zoom.Active = True
MyChart.Chart.Zoom.ZoomPercent(110)
MyChart.Chart.Zoom.Direction=Steema.TeeChart.ZoomDirections.Horizontal
MyChart.Chart.Zoom.Activate(e.X, e.Y)
Have somebody meet the same experience ?
What are the solutions ?
Tahnks