10354 : When the dateScaler is zoomed in or out, is it possible to detect when the mode switch occurs?

Question

When the dateScaler is zoomed in or out, is it possible to detect when the mode switch occurs?

Answer

Currently there is no perfect way to detect mode switches. I have no oother explanation other than we have missed it. Sorry.

Workaround:

You can implement the event OnDateScalerDrawString of the DateScaler, in this events argument you will find a Resolution parameter (e.Resolution). That value is of type NonLinearTime.TimeResolution. You can remember the value of this (in a member variable) and fire your own event when it changes (it will be a mode switch).

Leave a Reply