MarksTip .Click Problem
Posted: Tue Mar 16, 2010 12:52 am
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?
Thank You!
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