Possible to undo AxisArrow moves?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Possible to undo AxisArrow moves?

Post by LibDundas » Tue May 12, 2009 8:45 pm

I have a chart with zoom enabled and AxisArrows for both the X and Y axes.

If I zoom in and then click on any of the AxisArrows, the chart moves fine. I have a 'Zoom Out' button on my form that basically calls tChart1.Zoom.Undo(), but since I moved the chart around with the arrows, the undo zoom no longer views the whole graph.

Is there a way to undo the axis arrow clicks?

Thanks

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Post by LibDundas » Tue May 12, 2009 8:53 pm

SORRY!

I just found a post that solved my problem.

http://www.teechart.net/support/viewtopic.php?t=4397
narcis wrote:Hi Brian,

Thanks for the example, yes, you are right, however you can easily solve that by setting axes to automatic scalling when undoing zoom:

Code: Select all

    private void tChart1_UndoneZoom(object sender, EventArgs e)
    {
      for (int i = 0; i < tChart1.Axes.Count; i++)
      {
        tChart1.Axes[i].Automatic = true;
      }
    }

Post Reply