Promotic
WikipediaLinkedInYoutubeTwitterFacebook

tvTicks - Deatiled object description

See: Object tvTicks
 

Object for the configuration of the scale main ticks (longer ones) or grid lines layout. The object of the tvTicks type is owned by two types of objects:

1) by the object of the tvScale type that is accessible by the tvScale.Ticks property. It specifies the number of scale main ticks (longer ones) and an assignment which values on the axis have got the main tick (and thereby a legend). For example, it is possible to define a legend for the value on the time scale at 10:00 and then every 8 hours. The number of minor ticks (shorter ones) is defined by the MinorTicksNum property.
or
 
2) by the object of the tvGrid type that is accessible by the tvGrid.Ticks property. It specifies the number of grid lines and an assignment which values on the axis have got the grid line.
 
If they remains preset by properties of this object, the number, layout and alignment of scale main ticks (longer ones) are counted automatically and the layout of grid lines (vertical or horizontal) is always the same according to the ticks layout that refers to the time or value scale.

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

Example:
Setting the ticks layout of the time and value scale
Dim oTicks
Set oTicks = oTView.ScaleTime.Ticks
oTicks.AlignType = 3 'align to the absolute value
oTicks.AlignValue = 1/4 'align to the value 06:00:00 on the time axis
oTicks.CountType = 25
oTicks.CountValue = 4 'number of main ticks is 4
Set oTicks = oTView.ScaleValue.Ticks
oTicks.AlignType = 3 'align to the absolute value
oTicks.AlignValue = 0 'align to the value 0 on the value (Y) axis
oTicks.CountType = 10
oTicks.CountValue = 200 'distance of two main ticks is 200
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice