Custom pointers

TeeChart for ActiveX, COM and ASP
Post Reply
nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Custom pointers

Post by nefis » Thu Jan 22, 2004 10:29 am

Hello,

is there any way to mark specific points with custom icons?

nefis

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jan 23, 2004 8:26 am

Hi nefis,

you can draw your own symbols (or anything else) onto
the TeeChart canvas using TeeChart's Canvas drawing methods exposed in Tutorial 13 - Custom drawing on the Chart Panel.
Or change the PointerStyle for any point using the OnGetPointerStyle event.

nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Post by nefis » Fri Jan 23, 2004 11:14 am

Pep wrote: Or change the PointerStyle for any point using the OnGetPointerStyle event.
I didn't find the event OnGetPointerStyle in my TeeChart version 6.0.0.4
There is OnGetSeriesPointerStyle which allows to change pointer style for PointerSeries. But I don't know how it can be used not to show any pointer at all

nefis

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 26, 2004 10:29 am

Hi nefis,
I didn't find the event OnGetPointerStyle in my TeeChart version 6.0.0.4
There is OnGetSeriesPointerStyle which allows to change pointer style for PointerSeries. But I don't know how it can be used not to show any
pointer at all
Yes, sorry I refer to the "OnGetSeriesPointerStyle" event.
You can do this :

Code: Select all

Private Sub TChart1_OnGetSeriesPointerStyle(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, AStyle As TeeChart.EPointerStyle)
If ValueIndex = 1 Then
    TChart1.Series(0).asPoint.Pointer.Style = psNothing
Else
    TChart1.Series(0).asPoint.Pointer.Style = psRectangle
End If
End Sub

Post Reply