tvScale - Deatiled object description

See: Object tvScale

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 TrendsView.ScaleTime property. The other represents the value axis scale and it is accessible by means of the TrendsView.ScaleValue property. The number of scale main ticks and its layout owing to the values is defined in the tvTicks object that is owned by the tvScale object and is accessible by the Ticks property.

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

The object is used only when the graph mode is set.

Setting the properties of the time and value scale
Dim oScaleTime, oScaleValue
Set oScaleTime = oTView.ScaleTime
Set oScaleValue = oTView.ScaleValue
oScaleTime.Location = 1
oScaleTime.LabelColor = "#0000ff" 'color setting by RGB String
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"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice