FastLine not redrawing

TeeChart for ActiveX, COM and ASP
Post Reply
Neil
Newbie
Newbie
Posts: 10
Joined: Wed Oct 09, 2002 4:00 am
Location: UK
Contact:

FastLine not redrawing

Post by Neil » Mon Sep 06, 2004 4:26 pm

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

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

Post by Pep » Mon Sep 06, 2004 6:13 pm

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 ?

Neil
Newbie
Newbie
Posts: 10
Joined: Wed Oct 09, 2002 4:00 am
Location: UK
Contact:

Post by Neil » Tue Sep 07, 2004 10:06 am

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

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

Post by Pep » Tue Sep 07, 2004 10:19 am

Hi Neil,

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

Neil
Newbie
Newbie
Posts: 10
Joined: Wed Oct 09, 2002 4:00 am
Location: UK
Contact:

Post by Neil » Wed Sep 08, 2004 7:44 am

I sent it yesterday. Did you receive it?

Can you see the problem?

Neil

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

Post by Pep » Thu Sep 09, 2004 4:23 pm

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

Post Reply