Hi there,
I am using Teechart Pro Ax v6,
I am trying to get marks coordinates and dimensions, for this I use the following in VC++
double x = m_TChart.Series(i).GetMarks().GetPositions().GetPosition(j).GetLeftTop().GetX();
This statement works fine for single series chart.
But for multi-series chart, except for value i=0;j=0; Teechart throws an exception for all values of i and j.
Kindly let me know what is wrong and how I can work around this....
Regards
Thangaraj A.L.
Exception raised while getting Mark Coordinates...
Exception raised while getting Mark Coordinates...
Thangaraj A.L.
Hi Thangaraj,
using the following code (with the latest TeeChart Pro v6.04) works fine here, could you please test it ?
using the following code (with the latest TeeChart Pro v6.04) works fine here, could you please test it ?
Code: Select all
void CGetXSeriesMarksDlg::OnButton1()
{
for (int i=0;i<=m_chart.GetSeriesCount()-1;++i)
for (int j=0;j<=m_chart.Series(i).GetCount()-1;++j)
{
int a =m_chart.Series(i).GetMarks().GetPositions().GetPosition(j).GetLeftTop().GetX();
CString s;
s.Format(_T("%d"), a);
MessageBox(s);
}
}
Pep Jorge
http://support.steema.com
http://support.steema.com