Page 1 of 1

Disable zoom & move

Posted: Mon Aug 01, 2016 4:11 am
by 16077780
Hi there, I would like to disable zoom and move by default and only enable it when enable the function when user click from ChartController.

The old codes used to be Zoom.Allow which I couldn't find the options. I have tried tChart.Zoom.Active = false; and tChart.Panning.Allow = Steema.TeeChart.ScrollModes.None;
Both codes doesn't work.

Re: Disable zoom & move

Posted: Mon Aug 01, 2016 10:20 am
by 10050769
Hello user2016,

I would like suggest you use Zoom Directions to disable the Zoom and Panning. Allow to disable the Scroll. The code below works in my end:

Code: Select all

        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            tChart1.Series.Add(typeof(Line)).FillSampleValues();
            tChart1.Zoom.Direction = ZoomDirections.None;
            tChart1.Panning.Allow = ScrollModes.None;
      }
Hoping this helps you
Thanks in advance

Re: Disable zoom & move

Posted: Wed Aug 03, 2016 4:01 am
by 16077780
Hi Sandra,

Thanks for the suggestion, it works!