Page 1 of 1

DrawLine disappearing on zoom

Posted: Wed May 20, 2009 9:04 am
by 14045263
Hey,

I've got a DrawLine tool on my chart whereby i'm manually giving it coordinates to draw with.

Trouble is, when I zoom in, it disappears.
Can you reproduce??

Code: Select all

        public Form1()
        {
            InitializeComponent();
            Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line.FillSampleValues(1000);
            this.tChart1.Aspect.View3D = false;
            tChart1.Draw();

            DrawLine drawLine = new DrawLine(tChart1.Chart)
            {
                EnableDraw = false, 
                EnableSelect = false, 
                Active = true
            };

            DrawLineItem drawLineItem = new DrawLineItem(drawLine)
            {
                Pen = 
                {
                    Color = Color.Black,
                    Visible = true 
                } 
            };

            drawLineItem.StartPos = new Steema.TeeChart.Drawing.PointDouble(tChart1.Axes.Bottom.Minimum, tChart1.Axes.Left.Minimum);
            drawLineItem.EndPos = new Steema.TeeChart.Drawing.PointDouble(tChart1.Axes.Bottom.Maximum, tChart1.Axes.Left.Maximum);
        }
Zoom in on a portion of the line, then zoom in on a portion of the line again, and if you keep going to an extent it should just disappear.

Using latest 3.5 tchart.

Regards,

Chris.

Posted: Wed May 20, 2009 12:13 pm
by 10050769
Hello noaksey,

I could reproduce your problem and I have added to the list of Bug Report with number [TF02014167] we will try to fix it for next versions of TeeChart .NET.

Thanks,