Page 1 of 1

Returning to original position after scrolling not working

Posted: Thu Feb 16, 2006 1:45 am
by 9640166
Hi,

I have a chart displaying numeric values on the y-axis and datetime values on the x-axis. The chart also has a cursor with the FollowMouse property set to true.

After scrolling, when I try to return to the original position by holding down the left mouse button and moving up and laterally as works in the examples, nothing happens and the chart position stays where I had scrolled to.

Am I missing something or do you have to write some code to perform this behaviour?

Thanks.

Posted: Thu Feb 16, 2006 10:23 am
by narcis
Hi Agrilink,

Please notice that the default button for scrolling is the right mouse button. However, to return to the original chart position you can also perform the unzooming procedure (press the left mouse button and while you keep it pressed move the mouse towards the left top of the chart, when you release the button the chart will be "unzoomed").

There's nothing special that needs to be done to achieve that. You can check your chart zoom and scroll settings. Using the chart editor, yocan find zoom and scroll settings at the General tab.

If the problem persists please send us an example we can run "as-is" to reproduce the problem here.

Thanks in advance.

Posted: Thu Feb 16, 2006 11:10 pm
by 9640166
Hi Narcis,

I had the Zoom property set to false by intention. I only wanted the user to scroll.

When Zoom is set to true, it works as expected.

In your reply you state,

"(press the left mouse button and while you keep it pressed move the mouse towards the left top of the chart, when you release the button the chart will be "unzoomed")", which you say is the "unzooming procedure".

Is there a way to return to the original chart position after scrolling with the Zoom property set to false?

If not I'll have to allow the user to zoom.

Thanks for your help.

Posted: Fri Feb 17, 2006 11:18 am
by narcis
Hi Agrilink,

Yes, too unzoom your chart you can use:

Code: Select all

		private void button1_Click(object sender, System.EventArgs e)
		{
			tChart1.Axes.Left.Automatic=true;
			tChart1.Axes.Bottom.Automatic=true;
		}