Event TChart.ClickSeries not firing for Point Series
Posted: Wed Jun 03, 2009 3:30 pm
Since upgrading TeeChart from v3 to v4, some of our click events are no longer working. After investigating a little, I found out that the event is fired for line series, but not for point series.
Here's a sample code that demonstrates the problem:
Here's a sample code that demonstrates the problem:
Code: Select all
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TChart1.Aspect.View3D = False
mySeriesPoints = New Steema.TeeChart.Styles.Points(Me.TChart1.Chart)
mySeriesPoints.Cursor = Cursors.Hand
Call mySeriesPoints.FillSampleValues(50)
mySeriesLine = New Steema.TeeChart.Styles.Line(Me.TChart1.Chart)
mySeriesLine.Cursor = Cursors.Hand
Call mySeriesLine.FillSampleValues(50)
AddHandler Me.TChart1.ClickSeries, AddressOf Me.clickSeries
End Sub
Private Sub clickSeries(ByVal sender As Object, ByVal s As Steema.TeeChart.Styles.Series, ByVal valueIndex As Integer, ByVal e As System.Windows.Forms.MouseEventArgs)
MsgBox(s.Title & " clicked!", MsgBoxStyle.Information)
End Sub