How to determine which check box the user clicked ?

TeeChart for ActiveX, COM and ASP
Post Reply
Kenny
Newbie
Newbie
Posts: 1
Joined: Sat Oct 12, 2002 4:00 am

How to determine which check box the user clicked ?

Post by Kenny » Thu Jan 08, 2004 3:43 pm

Hi,
I would like to determine which check box the user clicked. OnClickLegend only gives the X,Y coordinates.
How can I determine for which series he clicked the check box ?

Thanks and best regards
Kenny

Pep
Site Admin
Site Admin
Posts: 3301
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jan 08, 2004 7:02 pm

Hi Kenny,

you can do something like this :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    .AddSeries scLine
    .Series(0).FillSampleValues (10)
    .Series(1).FillSampleValues (10)
    .Legend.CheckBoxes = True
End With
End Sub

Private Sub TChart1_OnBeforeDrawSeries()
    If TChart1.Series(0).Active = False Then
            MsgBox ("Series1 is not Actived")
    End If
End Sub
Josep Lluis Jorge
http://support.steema.com

Post Reply