changing color issue

TeeChart for ActiveX, COM and ASP
Post Reply
abing
Newbie
Newbie
Posts: 24
Joined: Thu Feb 07, 2002 5:00 am

changing color issue

Post by abing » Sat Jul 24, 2004 9:57 am

In my application, I add data to series like this:
void CMyTestView::OnTimer(UINT nIDEvent)
{
m_time++;
CTChart * pTC = (CTChart*)GetDlgItem(IDC_TCHART1);
pTC->Series(0).AddXY(m_time,rand(),"",m_color);
CFormView::OnTimer(nIDEvent);
}
Then I changed the m_color to an new color. But the data added befor did not change. How can I change the whole series to the new color.
Thank you!

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

Post by Pep » Sun Jul 25, 2004 11:33 am

Hi,

to change the whole series color you must use :
m_chart.Series(0).SetColor(color);

abing
Newbie
Newbie
Posts: 24
Joined: Thu Feb 07, 2002 5:00 am

Post by abing » Mon Jul 26, 2004 12:44 am

But it does not work in our application. I have RefreshSeries() and Repaint(). And It is the same. I use the Pro V5.

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

Post by Pep » Mon Jul 26, 2004 8:40 am

Hi,
I've posted one example which into the steema.public.attachments newsgroup which works fine here. Could you please test it.

Post Reply