bug with selector and delete series.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

bug with selector and delete series.

Post by Quant » Fri Jun 26, 2015 9:12 am

Dear Steema,
We found one bug with selector and delete series.When we delete any series from chart. then also selector can select that series which is invisible on chart.

I am using following function to delete series.

Code: Select all

        public void DeleteSeries(Series selectedSeries)
        {
            tChart1.Series.Remove(selectedSeries);
            selectedSeries.Dispose();
            selector1.Active = false;
            chartObj.isSeriesSelected = false;
            tChart1.Update();
            tChart1.Refresh();
            ChartParent.EnableAxis(VerticalAxis.Left, tChart1.Axes.Left.Visible);
            ChartParent.EnableAxis(VerticalAxis.Right, tChart1.Axes.Right.Visible);
        }

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: bug with selector and delete series.

Post by Christopher » Fri Jun 26, 2015 12:43 pm

Quant wrote:Dear Steema,
We found one bug with selector and delete series.When we delete any series from chart. then also selector can select that series which is invisible on chart.
I cannot reproduce this issue with the latest publicly available version of TeeChart and the following code:

Code: Select all

    Selector tool1;
    Line series1;

    private void InitializeChart()
    {
      series1 = new Line(tChart1.Chart);
      series1.FillSampleValues();
      tool1 = new Selector(tChart1.Chart);
      tool1.Series = series1;
    }


    private void button4_Click(object sender, EventArgs e)
    {
      tChart1.Series.Remove(series1);
      series1.Dispose();
    }
Please modify the above code snippet so I can reproduce the issue here.

Thank you.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply