tvGrid - Deatiled object description

See: Object tvGrid

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 'align vertical grid lines to the absolute value
oGridTime.Ticks.AlignValue = 1/4 'align 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 'align vertical grid lines to the absolute value
oGridValue.Ticks.AlignValue = 0 'align 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
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice