Page 1 of 1
Multiple tcCursor tools
Posted: Tue Jun 17, 2008 8:57 am
by 9530819
Using v7 of ActiveX control.
Is it possible to add two tcCursor tools, both with style = vertical?
Posted: Tue Jun 17, 2008 9:07 am
by narcis
Hi Rossmc,
Yes, this is possible. You may want to associate them to different series.
Nevrmind
Posted: Tue Jun 17, 2008 10:47 am
by 9530819
Sorry - Never mind. I was being a little stupid.
Hi
Here is what I did:
.AddSeries scLine
.Series(0).FillSampleValues 260
l = .Tools.Add(tcCursor)
.Tools.Items(l).asTeeCursor.Style = cssVertical
With just the above code the cursor appears. If I then attempt to add a second cursor, neither appear?
Posted: Tue Jun 17, 2008 11:22 am
by narcis
Hi Rossmc,
This is most likely because second cursor tool overlaps with the first one. You should set tool's x and y values, for example:
Code: Select all
TChart1.Tools.Items(0).asTeeCursor.XVal = 5
TChart1.Tools.Items(0).asTeeCursor.YVal = 10