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,
Undo Zoom
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |