Page 1 of 1

FastLine not redrawing

Posted: Mon Sep 06, 2004 4:26 pm
by 6924861
I'm using CFastLineSeries for extra speed, and everything works well when adding points where the x value is increasing.

When I add values where the x value is decreasing, nothing gets shown until another 'event' happens (e.g. new tools created, or screen manually repainted).

Is there a fix for this?

I'm using TeeChart V5 ActiveX under VC 6.

Neil

Posted: Mon Sep 06, 2004 6:13 pm
by Pep
Hi Neil,

which code are you using ? I cannot reproduce the problem here. Could you please tell me the steps to reproduce it or send me a simple example ?

Posted: Tue Sep 07, 2004 10:06 am
by 6924861
Hi,

You will only see this effect if you add the points over a period of time (ie with a SetTimer).

I have a visual C++ example program I can send.

What email address can I send it to?

Neil

Posted: Tue Sep 07, 2004 10:19 am
by Pep
Hi Neil,

yes, please send me it directly to pep@steema.com

Posted: Wed Sep 08, 2004 7:44 am
by 6924861
I sent it yesterday. Did you receive it?

Can you see the problem?

Neil

Posted: Thu Sep 09, 2004 4:23 pm
by Pep
Hi Neil,

yes, I've received it. The problem is in the :

void CGraphTestView::OnTimer(UINT nIDEvent)

Make sure you set the sort order of the valuelists to none, e.g.

#endif // EVENTMARKER

if(m_pData >= &data[_countof(data)-1])
{
m_Direction = -1;
m_Series = m_cChart.Series(m_cChart.AddSeries(lineType));
m_Series.GetXValues().SetOrder(loNone);
m_Series.GetYValues().SetOrder(loNone);

#ifdef FASTLINE