Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ScrollValue - method of the PmgTrendViewer object

Description:
Scroll of the viewer in the value axis (Y) in the defined way.
Syntax:
Empty ScrollValue(Variant vTrend, Long nType, Long vPar1)
Parameters:
vTrend(Variant) Specifies which trend to scroll
-4 - Only the active trend, see the TrendActive property.
-3, "" - All trends
"id" - Trend with the id identifier, see the tvTrend.ID property.
nType(Long) The size and direction of the scroll
0, 1 - Scroll down (to lower values), up (to higher values) by the interval set in the vPar1 parameter.
10, 11 - Scroll down, up by the distance multiple of the value scale minor tick tvScale.MinorTicksNum. In vPar1, for example, the multiple equals 2.0.
20, 21 - Scroll down, up by the distance multiple of the value scale main tick, see the tvTicks object. In vPar1, for example, the multiple equals 2.0.
30, 31 - Scroll down, up by the multiple of the page length. In vPar1, for example, the multiple equals 1.0.
35 - Scroll down, up by the multiple of the page length. In vPar1, for example, the multiple equals -1.0 and the sign specifies the scroll direction (down, up).
40, 41, 42 - Scroll by the down, up edge, center of the viewer to the value specified in the vPar1
vPar1(Long) Interval, value or the multiple value in dependance on the nType setting
Note:

The method is used only if the graphic mode is set.

Example:
JavaScriptVBScriptSelect and copy to clipboard

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice