tvScale - Deatiled object description

See: the tvScale object.

The object represents a scale. The viewer contains two objects of the tvScale type.
- One represents the time axis scale and it is accessible by means of the PmgTrendViewer.ScaleTime property.
- The other represents the value axis scale and it is accessible by means of the PmgTrendViewer.ScaleValue property.

The number of main ticks of the scale and its layout owing to the values is defined in the tvTicks object that is in the tvScale object and is accessible by the Ticks property.

The right/left time of the time scale is accessible by the PmgTrendViewer.TimeMax / PmgTrendViewer.TimeMin properties, the maximum/minimum value of the value scale is accessible by the tvTrend.ValueMax / tvTrend.ValueMin properties (see the PmgTrendViewer.TrendActive property).

The object is used only if the graphic mode is set.
Setting the properties of the time scale and value scale
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;

oScaleTime.Location = 1;
oScaleTime.LabelColor = "#0000ff";   // color setting by RGB String in the form "#RRGGBB"
oScaleTime.LabelFormat = "%d.%m.%Y\\n%H:%M:%S";
oScaleTime.LabelFont.Bold = true;
oScaleTime.LabelFont.Size = 11;
oScaleTime.LabelFont.Name = "MS Sans Serif";
oScaleTime.TicksColor = "#0000ff";
oScaleTime.MinorTicksColor = "#0000ff";
oScaleTime.LabelBorderVisible = true;
oScaleTime.LabelBorderColor = "#0000ff";

oScaleValue.Location = 1;
oScaleValue.LabelColor = "#0000ff";
oScaleValue.LabelFormat = 2;
oScaleValue.LabelFont.Bold = true;
oScaleValue.TicksColor = "#0000ff";
oScaleValue.MinorTicksColor = "#0000ff";
oScaleValue.LabelBorderVisible = true;
oScaleValue.LabelBorderColor = "#0000ff";
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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