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.
about UpdataData()
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com