Page 1 of 1

Setting Mark Text

Posted: Thu Aug 21, 2008 2:14 am
by 15048479
I am trying to set Mark Text like Manual
in the manual , it's written as VB syntax
but I think it is not working in VC++ (
i tested in the VC6 , vs 2008 )

This Code always make error Message
"Member not found"
and not able to set Mark Text

Code: Select all

m_chart.AddSeries(0);
m_chart.ChangeSeriesType(0,scLine);
m_chart.Series(0).GetAsLine().GetPointer().SetStyle(psCircle);
m_chart.Series(0).GetAsLine().GetPointer().SetVisible(TRUE);
m_chart.Series(0).AddXY(3,10,_T("A"),RGB(255,0,0));
m_chart.Series(0).AddXY(4,10,_T("B"),RGB(255,0,0));
m_chart.Series(0).GetMarks().GetItem(0).GetText().SetText(_T("XXX"));
what is wrong ?
is it just a bug ?? or I am missing something?

please tell me what is the problem.

Posted: Thu Aug 21, 2008 3:49 pm
by Pep
Hello,

yes, you're correct, I'm able to reproduce the problem here, it's a bug which has been added down our defect list [TA05013335] and a fix for it will considered to inclusion for the next v8.0.0.5.
In meantime you could try to use the OnGetSeriesMark event to modify the text of specific Series Marks.