Page 1 of 1

MarksTip .Click Problem

Posted: Tue Mar 16, 2010 12:52 am
by 9794302
Hi,
I'm using TeeChart.dll v2.0.2987.19069. I've got a TChart in my VB.NET (VS2005) that's working will and has an exisiting MarksTip (using MarksTipMouseAction.Move) that works well also.

When I add a second MarkTip and the following code it doesn't appear to work and the GetText() event never gets fired either. I want the MarksTip to appear when I click on the Line series. Am I doing something wrong?

Code: Select all

  Friend WithEvents MarksTip1 As Steema.TeeChart.Tools.MarksTip
    Private Sub cmdBL_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdBL.Click
        MarksTip1 = New Steema.TeeChart.Tools.MarksTip(TChart1.Chart)
        TChart1.Tools.Add(MarksTip1)
        Me.MarksTip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Click
        Me.MarksTip1.Series = Me.TCLowerLimitLine
        Me.MarksTip1.MouseDelay = 0
        Me.MarksTip1.Active = True
    End Sub

    Private Sub MarksTip1_GetText(ByVal sender As Steema.TeeChart.Tools.MarksTip, ByVal e As Steema.TeeChart.Tools.MarksTipGetTextEventArgs) Handles MarksTip1.GetText
        MsgBox(e.Text)
    End Sub
Thank You!

Re: MarksTip .Click Problem

Posted: Tue Mar 16, 2010 8:18 pm
by 9794302
It seems like you can't have two "Tools" attached to a single series?

Is that true?

Re: MarksTip .Click Problem

Posted: Wed Mar 17, 2010 9:52 am
by 10050769
Hello aem,

When I add a second MarkTip and the following code it doesn't appear to work and the GetText() event never gets fired either. I want the MarksTip to appear when I click on the Line series. Am I doing something wrong?
I try to reproduce your problem, but here, when there are two MarkTip event GetText() works correctly, as default appears value of last MarkTips that you add, but both events are running. Please, you could say exactly, what result do you get using two MarkTip in a same series? Maybe we could find a similar solution to what you want.


Thanks,