About MarksTip tool

TeeChart for ActiveX, COM and ASP
Post Reply
gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

About MarksTip tool

Post by gong » Tue Jun 14, 2005 12:22 am

How can I make TChart1_OnMarkTipToolGetText to format text including X-value and Y-value like "x,y"?

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

Post by Narcís » Tue Jun 14, 2005 9:06 am

Hi Gong,

You can do something like:

Code: Select all

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 10
    TChart1.Tools.Items(0).asMarksTip.Style = smsXY
End Sub

Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)
    Text = Replace(Text, " ", ", ")
End Sub
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