Page 1 of 1
Undo Zoom
Posted: Mon Jul 17, 2006 10:53 pm
by 9790735
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,
Posted: Tue Jul 18, 2006 8:55 am
by narcis
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.
Posted: Tue Jul 18, 2006 4:41 pm
by 9790735
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"
Posted: Tue Jul 18, 2006 9:27 pm
by 9790735
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
Posted: Wed Jul 19, 2006 10:15 am
by narcis
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;
}
}