Page 1 of 1

How to use tfCrossPoints

Posted: Wed Nov 10, 2004 8:03 am
by 9524740
I am trying to add a crosspoint line to my chart, but I cannot find how to add datasources to my crosspointline.

My current code (simplified) looks like this, but does not work :

lSerie = m_TChart.AddSeries(scPoint);
m_TChart.Series(lSerie).SetFunction(tfCrossPoints);
m_TChart.Series(lSerie).SetDataSource(COleVariant("Series0"));
m_TChart.Series(lSerie).SetDataSource(COleVariant("Series1"));

The two other lines (Series) are already drawn into the chart, and I need to mark the crosspoints. How to solve this problem ?

Posted: Wed Nov 10, 2004 12:46 pm
by Pep
Hi Hans,

it should work using :
m_Chart.Series(lSerie).SetDataSource(COleVariant("Series0,Series1"));

Posted: Wed Nov 10, 2004 2:05 pm
by 9524740
Thanks,

But now I get the problem that I get two cross points, where the two lines only cross once.

The first line is a scPoint3D smoothed line, the second a scFastLine.

The crosspoint serie is a scPoint with only diplaying the cross points. The second (non existing) crosspoint is on the scFastLine, but does not cross the scPoint3D line.

Any ideas ?

If I import my exported .tee file of the failing series, and import it in a clean VB project, it fails in Teechart 6 and Teechart 7.

Posted: Fri Nov 12, 2004 12:12 pm
by Pep
Hi Hans,

could you please send me (to pep@steema.com) one example with which I can see the problem here ?