Page 1 of 1

How to determine which check box the user clicked ?

Posted: Thu Jan 08, 2004 3:43 pm
by 6926024
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

Posted: Thu Jan 08, 2004 7:02 pm
by Pep
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