Undo Zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
matthbri
Newbie
Newbie
Posts: 43
Joined: Wed Mar 22, 2006 12:00 am

Undo Zoom

Post by matthbri » Mon Jul 17, 2006 10:53 pm

Hi,

when a chart is scrolled or zoomed, it can be undone by chart.zoom.undo

The chart we are using has multiple custom axes. The Bottom axes resets when Undo() is called, but the custom axes do not. They stay in the position they were scrolled to. The help file says 'undo also restores any runtime scrolling'. Am I missing a setting somewhere?

thanks,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 18, 2006 8:55 am

Hi matthbri,

It works fine here using the All Features\Welcome !\Axes\Scrolling multiple axes example in the features demo available at TeeChart's program group. Can you please test it this works at your end?

If the problem persists could you please send us an example we can run "as-is" to reproduce the problem here? You can send your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.
Best Regards,
Narcís Calvet / 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

matthbri
Newbie
Newbie
Posts: 43
Joined: Wed Mar 22, 2006 12:00 am

Post by matthbri » Tue Jul 18, 2006 4:41 pm

Hi,

I reproduced the problem in Axis_MultiScoll.cs

We are not using the Left or Right axes at all, just custom axes.
Is this a limitation?

code uploaded to steema.public.attachments "Multiple Axes"

matthbri
Newbie
Newbie
Posts: 43
Joined: Wed Mar 22, 2006 12:00 am

Post by matthbri » Tue Jul 18, 2006 9:27 pm

Just to clarify, even in the TeeChart Examples Axis_MultiScroll example, the Undo operation only undoes Left and Bottom axes. it does not undo the custom axes.

Brian

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 19, 2006 10:15 am

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;
      }
    }
Best Regards,
Narcís Calvet / 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