Page 1 of 1

Custom pointers

Posted: Thu Jan 22, 2004 10:29 am
by 9079459
Hello,

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

nefis

Posted: Fri Jan 23, 2004 8:26 am
by Pep
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.

Posted: Fri Jan 23, 2004 11:14 am
by 9079459
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

Posted: Mon Jan 26, 2004 10:29 am
by Pep
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