DrawLine disappearing on zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
noaksey
Newbie
Newbie
Posts: 55
Joined: Wed May 23, 2007 12:00 am

DrawLine disappearing on zoom

Post by noaksey » Wed May 20, 2009 9:04 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Wed May 20, 2009 12:13 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply