VB Help with GetPointerStyle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Avatar
Newbie
Newbie
Posts: 26
Joined: Mon Mar 22, 2004 5:00 am
Location: Calgary Canada
Contact:

VB Help with GetPointerStyle

Post by Avatar » Thu May 19, 2005 9:08 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 20, 2005 8:03 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply