Page 1 of 1

ValueList Count(xxx) greater than the array ...

Posted: Tue Feb 06, 2007 12:11 am
by 9531682
ValueList Count(xxx) greater than the array length(0). D:\Steema\Root\TeeChartVCL\Sources7\TeEngine.pas, line 5316)

I do not have the source code, so how am I to debug this.

I think that it is related to this line:
m_pChart->Series(PointPlotRedIdx). AddArray( RedPointCount, m_YValuesRed, m_XValuesRed );

but not sure.

The system runs just fine for 1 or 2 thousand data points then this error jumps up randomly. Sometimes just after a few hundred data points.

My OleSafeArrays are created with 1,000,000 8-Byte Reals, so I should not run out of space!

Posted: Tue Feb 06, 2007 8:28 am
by narcis
Hi John P. Francis,

Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.

Thanks in advance.

Error in AddArray, make points individually visible or not-

Posted: Tue Feb 13, 2007 2:17 am
by 9531682
It is not practical to send an example.

On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?

Thanks

Posted: Tue Feb 13, 2007 8:31 am
by narcis
Hi John,
It is not practical to send an example.


Why do you think it is not practical? In some cases, we need to see how TeeChart is used in order to reproduce the issues reported. A simple example project reproducing the issue is very helpful for us to reproduce it and try to find a solution to it. So we would be very grateful if you could send us an example to reproduce the issue.
On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?
Yes, you can achieve that using the OnGetPointerStyle event and set the pointer style to not visible for those points you want.

I'll try and cook up a small example, also ...

Posted: Tue Feb 13, 2007 4:04 pm
by 9531682
Do you have an example of using OnGetPointerStyle?

Do you mean OnGetSeriesPointerStyle?

Posted: Tue Feb 13, 2007 4:19 pm
by 9531682
I could not find OnGetPointerStlye, but maybe is it OnGetSeriesPointerStyle which is number 33.

If so, what funstion signature do I use?

such as:

ON_EVENT(CCelulatorView, IDC_TCHART1, 21, /* OnMouseUp */ OnMouseUpChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)

then...
void CCelulatorView::OnMouseUpChart(long Button, long Shift, long X, long Y)

Posted: Wed Feb 14, 2007 2:47 pm
by Pep
Hi John,

you have two options :
1) Use the OnGetSeriesPointerStyle event, similar code to the following :

Code: Select all

void CPstylesDlg::OnOnGetSeriesPointerStyleTchart1(long SeriesIndex, long ValueIndex, long FAR* AStyle) 
{
	if (ValueIndex > 2)
		*AStyle=psNothing;
	else
		*AStyle=psRectangle;		
}
2) Use the SetPointColor method to assign clNone color to specific points :

m_chart.Series(0).SetPointColor(1,clNone);