Page 1 of 1

TColorGridSeries Clear problem

Posted: Wed May 26, 2004 8:59 pm
by 8439796
Here's another question:

I can't clear the data from TColorGridSeries by writing a->Clear(); It won't completely remove all the data. It does give me a clean chart, but if I add data, it'll show some old data point. So if I keep adding data after Clear(), I'll get a colortable overflow error eventually.

But at runtime if I first change the series to TPoint3DSeries via ChangeAllSeriesType, and do Clear() and change it back to TColorGridSeries, then I get true clean chart. Weird? But I still get that color table overflow if I repeat doing this.

I might be missing something here. I notice there's a ClearPalete() function, but don't know if it's related.

I searched the newsgroup, and found someone had the same problem but without the solution.
http://216.101.185.148/scripts/isapi.dl ... le=4519540


Fang

Posted: Thu May 27, 2004 6:58 pm
by 8439796
Hello?

Is this a bug or feature? :roll:

Posted: Fri May 28, 2004 5:24 am
by Marjan
Hi.

It's a bug in the internal bitmap drawing routine (and not related to Clear method). I've added it on the bug list so that it can be addressed for next release.