Page 1 of 1

bug with selector and delete series.

Posted: Fri Jun 26, 2015 9:12 am
by 16071129
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);
        }

Re: bug with selector and delete series.

Posted: Fri Jun 26, 2015 12:43 pm
by Christopher
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.