Page 1 of 1

Event TChart.ClickSeries not firing for Point Series

Posted: Wed Jun 03, 2009 3:30 pm
by 15653373
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:

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

Posted: Thu Jun 04, 2009 12:33 pm
by narcis
Hi BlueM,

Thanks for reporting. I could reproduce the issue here and added it (TF02014214) to the defect list to be fixed for next releases.

Re: Event TChart.ClickSeries not firing for Point Series

Posted: Wed Jul 01, 2009 3:16 pm
by 15653373
It's working again with the latest release 4.0.2009.21355! Thanks!