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.
Disable zoom & move
Re: Disable zoom & move
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:
Hoping this helps you
Thanks in advance
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;
}
Thanks in advance
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Disable zoom & move
Hi Sandra,
Thanks for the suggestion, it works!
Thanks for the suggestion, it works!