Page 1 of 1

[ANSWERED] somme marks in a fast line

Posted: Thu Mar 21, 2013 10:56 am
by 16665441
hello
is it possible to put marks on some point of a FastLine

my FastLine represents the operation of a motor, I have put marks on the points out of tolerance.
but the "MARKS" are drawn on every point and annotation not scroll with the fast line.
Is there a solution.
thank you

Re: somme marks in a fast line

Posted: Thu Mar 21, 2013 3:00 pm
by 10050769
Hello jika,

Yes is possible, you only must access to the items of Marks you don't want are visible as do in next lines of code:

Code: Select all

Private Sub Form_Load()
TChart1.AddSeries scFastLine
TChart1.Series(0).FillSampleValues 10
TChart1.Series(0).Marks.Visible = True
Dim i As Integer
For i = 0 To 10
   If (TChart1.Series(0).XValues.Value(i) Mod 2 = 0) Then
   TChart1.Series(0).Marks.Item(i).Visible = False
   End If
   
Next
End Sub
Thanks,