Mark Tip Tool Crashes VB6

TeeChart for ActiveX, COM and ASP
Post Reply
tom.k
Newbie
Newbie
Posts: 6
Joined: Fri Feb 06, 2004 5:00 am
Location: Australia

Mark Tip Tool Crashes VB6

Post by tom.k » Sun Oct 09, 2005 12:10 am

Hi,

Is this another possible bug????? Need urgent help.

I am using TeeChart AX7 v. 7.0.0.5.

I have two series line and point, I add the marktip tool to both series, then
I have the following code:

Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)

If Tool = 1 Then
Text = "Subgroup No 1"
Else
Text = "Subgroup No 2"
End If
End Sub

I see the tips when I move the mouse over the points, but when I move the mouse out of the chart area on to the form it chrashes VB6 totally. I get the following error message:

"Runtime Error 216 at 0462380E".

When I use the earlier version TeeChart AX6 (v. 6.0.0.5) it works fine, except the tool tip boxes "ghost" on the chart area.

Does anyone have an answer/solution to this problem?

I upgraded to TeeChart AX7 because of the "ghosting" problem - now I have this problem.

Thanks,

Tom.k

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

Post by Narcís » Mon Oct 10, 2005 8:02 am

Hi Tom.k,

I'm not able to reproduce the problem you report using the code below.

Code: Select all

Private Sub Form_Load()
    For i = 0 To 1
        TChart1.Series(i).FillSampleValues 10
        TChart1.Tools.Add tcMarksTip
        TChart1.Tools.Items(i).asMarksTip.Series = TChart1.Series(i)
    Next
End Sub

Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)
    If Tool = 0 Then
        Text = "tool 1"
    Else
        Text = "tool 2"
    End If
End Sub
Can you please test if this works for you? If this doesn't work we could send you our latest .ocx build. If it works but not your project, could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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

tom.k
Newbie
Newbie
Posts: 6
Joined: Fri Feb 06, 2004 5:00 am
Location: Australia

Mark Tip Tool Crashes VB6

Post by tom.k » Mon Oct 10, 2005 9:30 pm

Hi Narsis,

Thanks for your reply. The code does not work, still crashes VB6 when you move the mouse out of the chart. BTW I am using XP SP 2.
(However the code did work in v. 6 with the ghosting.)

I am really keen to get this resolved and would appreciate if you could send the latest .ocx.

Thanks

Tom.k

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 Oct 11, 2005 7:12 am

Hi Tom.k,

I've sent you latest .ocx built available to your e-mail contact address. Can you please test if it works for you and let us know?
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

tom.k
Newbie
Newbie
Posts: 6
Joined: Fri Feb 06, 2004 5:00 am
Location: Australia

Mark Tip Tool Crashes VB6

Post by tom.k » Tue Oct 11, 2005 9:41 pm

Thanks Narsis!

The updated OCX resolved the problem. That was great support from you guys!

Tom.k

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

Post by Narcís » Thu Oct 13, 2005 7:39 am

You're welcome Tom.k,

I'm glad to hear this solved your problem.
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