about UpdataData()
Posted: Mon Jun 07, 2004 3:00 pm
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.
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.