How to pan the chart in the Compact Framework?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BlueMonkey
Newbie
Newbie
Posts: 34
Joined: Tue Nov 04, 2008 12:00 am

How to pan the chart in the Compact Framework?

Post by BlueMonkey » Wed Mar 11, 2009 10:11 pm

I wrote a simple app based on the sample Compact Framework application for Windows mobile PC. I enabled panning as follows:

tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Both;

In a desktop app, this enables the left mouse button drag to pan. How do you pan in the compact environment?

Thanks,
Kent

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Mar 12, 2009 3:59 pm

Hi Kent,

The problem here is that pocketpcs have only one button, so you should set the scroll to be changed with "left button". And also you should disable zooming in order to cause confusion. So you could do as follows:

Code: Select all

tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Both;
tChart1.Panning.MouseButton = MouseButtons.Left;
tChart1.Zoom.Allow = false;
And if you want to allow zooming, the only thing I can think right now is to add a checkbox to to choose between zoom and scroll.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply