Page 1 of 1

VB Help with GetPointerStyle

Posted: Thu May 19, 2005 9:08 pm
by 8124568
Hi TeeChart

I have my line series ‘Y1’ and I want to display every forth point. I thing I have GetPointerStyle OK, but I have no way to call it. I have taken the various examples in the demo and off the site and run them through the C# to VB translators but they don’t come out clean enough for me to see were they are called from. I have a total of six separate series and each has the option of spacing the pointers.

How and where do I call GetPointerStyle?


Private Sub Y1_GetPointerStyle(ByVal series As Steema.TeeChart.Styles.CustomPoint, ByVal e As Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs) Handles Y1.GetPointerStyle

If e.ValueIndex Mod 4 <> 0 Then
e.Style = Steema.TeeChart.Styles.PointerStyles.Nothing
Else
e.Style = Steema.TeeChart.Styles.PointerStyles.Triangle
End If
End Sub

Thanks

Posted: Fri May 20, 2005 8:03 am
by narcis
Hi Avatar,

To fire the GetPointerStyle event you should set your series pointer to visible:

Code: Select all

Line1.Pointer.Visible = True
You can also do it at design-time using the chart editor.

To achieve that behaviour you could also try TChart's BeforeDraw or BeforeDrawSeries events or Series's BeforeDraw event.