tvGrid - Deatiled object description

See: Object tvGrid

The object represents (horizontal or vertical) lines that forms a grid. The viewer contains two objects of the tvGrid type. One represents vertical grid lines of the time axis and is accessible by the TrendsView.GridTime property. The other represents horizontal grid lines of the value axis and is accessible by the TrendsView.GridValue property. The number of grid lines and their layout owing to the values is defined in the tvTicks object that is owned by the tvGrid object and is accessible by the tvGrid.Ticks property.

Right, or left time of the time scale are defined by the TrendsView.TimeMax and TrendsView.TimeMin properties. Maximum, or minimum value of the value scale are represented by the tvTrend.ValueMax and tvTrend.ValueMin properties of the active tvTrend object, see TrendsView.TrendActive.

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

Setting the properties of the time and value grid
Dim oGridTime, oGridValue
Set oGridTime = oTView.GridTime
Set oGridValue = oTView.GridValue
oGridTime.Visible = true
oGridTime.LineType = 2
oGridTime.Color = "#0000ff" 'color setting by RGB String
oGridTime.Ticks.AlignType = 3 'vertical grid lines alignment to the absolute value
oGridTime.Ticks.AlignValue = 1/4 'alignment to the value 06:00:00 on the time axis
oGridTime.Ticks.CountType = 25
oGridTime.Ticks.CountValue = 4 'number of lines is 4
oGridValue.Visible = true
oGridValue.LineType = 3
oGridValue.Color = "#0000ff" 'color setting by RGB String
oGridValue.Ticks.AlignType = 3 'vertical grid lines alignment to the absolute value
oGridValue.Ticks.AlignValue = 0 'alignment to the value 0 on the value (Y) axis
oGridValue.Ticks.CountType = 10
oGridValue.Ticks.CountValue = 200 'distance of two lines is 200 on the value scale
PROMOTIC 8.3.19 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