Promotic

ScrollTime - method of the PmgTrendViewer object

Description:
Scroll of the viewer on the time axis.
Syntax:
Empty ScrollTime(Long nType, Variant vPar1)
Parameters:
nType(Long) Scroll type.
Suppose that:
left scrolls to older time periods
Right scrolls to newer time periods
0,1 - Scroll left/Right by the time-range specified in the vPar1 parameter.
Into the vPar1 parameter it is necessary to enter a value of the Date type.
10,11 - Scroll left/Right by the distance multiple minor ticks of the time scale tvScale.MinorTicksNum.
In the vPar1 parameter, for example, the multiple equals 2.0.
20,21 - Scroll left/Right by the distance multiple main ticks of the time scale, see the tvTicks object.
In the vPar1 parameter, for example, the multiple equals 2.0.
30,31 - Scroll left/Right by the multiple of the page length.
In the vPar1 parameter, for example, the multiple equals 1.0.
35 - Scroll left/Right by the multiple of the page length.
In the vPar1 parameter, for example, the multiple equals -1.0 and the sign specifies the scroll direction (-1=left, 1=Right).
40,41,42 - Scroll by the left/right edge/center of the viewer to the time specified in the vPar1 parameter.
Into the vPar1 parameter it is necessary to enter a value of the Date type.
50,51,52 - Scroll by the left/right edge/center of the viewer to the current time.
Into the vPar1 parameter it is necessary to enter the value 0.
60,61,62 - Scroll by the left/right edge/center of the viewer to the time that is entered in the window.
Into the vPar1 parameter it is necessary to enter the value 0.
This option is available only if the TimeType property is set to the time axis.
This method is not functional in Web panels.
70 - Scroll so on the left edge of the viewer there is the closest non-displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
71 - Scroll so on the left edge of the viewer there is the closest displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
74 - Scroll so on the right edge of the viewer there is the closest newly displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
75 - Scroll so on the right edge of the viewer there is the closest newly non-displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
78 - Scroll so on the right edge of the viewer there is the old non-displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
79 - Scroll so on the left edge of the viewer there is new non-displayed value of the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
 
90,91 - Scroll by the left/right edge of the viewer to the oldest/newest trend value in the active trend, see the TrendActive property.
Into the vPar1 parameter it is necessary to enter the value 0.
vPar1(Variant) Multiple value or the time in dependance on the nType setting
Note:
This method is also functional in Web panels.
 
The method is used for graphic mode and table mode.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
oTView.ScrollTime(10, 2);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.