Page 1 of 1

How to pan the chart in the Compact Framework?

Posted: Wed Mar 11, 2009 10:11 pm
by 10050727
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

Posted: Thu Mar 12, 2009 3:59 pm
by yeray
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.