Setting Mark Text

TeeChart for ActiveX, COM and ASP
Post Reply
Ssnsam
Newbie
Newbie
Posts: 6
Joined: Mon Mar 03, 2008 12:00 am
Contact:

Setting Mark Text

Post by Ssnsam » Thu Aug 21, 2008 2:14 am

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 21, 2008 3:49 pm

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.

Post Reply