Page 1 of 1

Mark Tip Tool Crashes VB6

Posted: Sun Oct 09, 2005 12:10 am
by 9080782
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

Posted: Mon Oct 10, 2005 8:02 am
by narcis
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.

Mark Tip Tool Crashes VB6

Posted: Mon Oct 10, 2005 9:30 pm
by 9080782
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

Posted: Tue Oct 11, 2005 7:12 am
by narcis
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?

Mark Tip Tool Crashes VB6

Posted: Tue Oct 11, 2005 9:41 pm
by 9080782
Thanks Narsis!

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

Tom.k

Posted: Thu Oct 13, 2005 7:39 am
by narcis
You're welcome Tom.k,

I'm glad to hear this solved your problem.