Returning to original position after scrolling not working

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Agrilink
Newbie
Newbie
Posts: 38
Joined: Thu Feb 02, 2006 12:00 am

Returning to original position after scrolling not working

Post by Agrilink » Thu Feb 16, 2006 1:45 am

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.

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

Post by Narcís » Thu Feb 16, 2006 10:23 am

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.
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

Agrilink
Newbie
Newbie
Posts: 38
Joined: Thu Feb 02, 2006 12:00 am

Post by Agrilink » Thu Feb 16, 2006 11:10 pm

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.

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

Post by Narcís » Fri Feb 17, 2006 11:18 am

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;
		}
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