pMe | (Object) Reference to the PmgTrendViewer object where the event rises. |
---|---|
pEvent | (Object) Reference to an object describing detailed information about the specific event.
pEvent.Range - (String) [for reading] Type of the time axis range change
"minmax": For graphic mode. Both the left end the right time was changed.
New values are in pEvent.TimeMinNew and pEvent.TimeMaxNew properties. "mincount": For table mode. The oldest (bottom) time has been changed.
In the pEvent.TimeMinNew property is new value. In the pEvent.TimeMaxNew property is: null for JavaScript or Empty for VBScript. "maxcount": For table mode. The newest (upper) time has been changed.
In the pEvent.TimeMaxNew property is new value. In the pEvent.TimeMinNew property is: null for JavaScript or Empty for VBScript. pEvent.ZoomChanged - (Boolean) [for reading] Flag informing that the time axis range has been modified or only shifted.
The property is used only if the graphic mode is set. For table mode it is always false. false: the time axis has been shifted
true: the time axis range has been modified pEvent.Zoom - (Double) [for reading] (range) The real range of the time axis (TimeSpan).
This is basically the difference between pEvent.TimeMaxNew - pEvent.TimeMinNew, bat it also solves the situation when there is a shift standard time - standard time between those times. pEvent.TimeMinType - (Long) [for read and write] Time type in the pEvent.TimeMinNew property.
The parameter has the same values as the TimeSetType property. pEvent.TimeMaxType - (Long) [for read and write] Time type in the pEvent.TimeMaxNew property.
The parameter has the same values as the TimeSetType property. |
if (pEvent.ZoomChanged)
{
var tZoom = pEvent.Zoom;
var sZoom = Pm.FormatDate(tZoom, "%H:%M:%S");
// time range < 1 day
}