How to detect in the code when the user zooms a chart?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
gbulle
Posts: 14
Joined: 18 Apr 2014
Has thanked: 2 times
Been thanked: 2 times

How to detect in the code when the user zooms a chart?

Postby gbulle » 31 Mar 2015

Hello,

I am developing my CustomDrawing using as template
the sample MyTest_CustomDraw_Modify

How to detect in the code when the user has zoomed the chart?

Thanks

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: How to detect in the code when the user zooms a chart?  [SOLVED]

Postby JoshM » 01 Apr 2015

How to detect in the code when the user has zoomed the chart?
If you mean with zooming having the bar spacing changed, then the `Environment.BarSpacing` property will return a different value after zooming compared to before it.

Other `Environment` properties, like `Environment.HighestScaleValue` or `Environment.RightScreenTime`, will likely also change.


Return to “MultiCharts .NET”