Page 1 of 1

about UpdataData()

Posted: Mon Jun 07, 2004 3:00 pm
by 6924221
I use teechart in VC++6.0.... like this:
void CTestFormView::OnTimer(UINT nIDEvent)
{
m_ntime += 1;
UpdateData(false);
m_TChart1.Series(i).AddXY(m_ntime,rand(),"",mycolor);
}
1. why I must add UpdateData(false).And sometimes it works,but sometimes it does works.
2. And I must firt run the OnTimer event ,then I can do something with teechart. if not ,everything I do with teechart will be wrong .
for example:
m_TChart1.GetAxis().GetCustom(i).SetStartPosition();
m_TChart1.ChangeSeriesType();
m_TChart1.Series().SetActive();
m_TChart1.Series().SetVerticalAxisCustom();
will be all wrong .

best wishes .thank you very much.

Posted: Wed Jun 16, 2004 11:40 am
by Pep
Hi,

I'm sorry, I don't undestand which is the problem you have, could you please be more specific ? Also, why are you using the UpdateData method ? It's not a TeeChart method.