Page 1 of 1

serieslist object usage

Posted: Wed Jun 09, 2004 11:36 pm
by 9335210
The following classes are defined in unit TeEngine:

TChartSeriesList
TSeriesGroups
TSeriesGroup
TCustomSeriesList
TChartSeries

I can create a TChartSeriesList and calling AddGroup creates a new TSeriesGroup. However, the FOwner and FGroups members of the TSeriesGroup are not initialized, and Add(TChartSeries) generates a GPF because it calls FGroups.Add. There are no methods to initialize either of these members, and it looks like the only place they're initialized in the code is within TCustomAxisPanel.Create. This seems really strange -- as if these classes are not meant to be used.

I've got a situation where I need to create lists of groups of data that need to be reorganized and displayed in a chart. It would be nice to be able to use objects created from these classes without having to define new classes or derive customized classes from them.

Is this a deliberate design decision (to restrict the use of some of these classes by not providing a way to initialize private data members outside their containing unit), or an oversight, or ... ?

-David

Posted: Tue Jun 15, 2004 4:35 am
by Marjan
Hi.

See David's reply at private newsgroups.

Posted: Tue Jun 15, 2004 8:31 pm
by 9335210
yup, I saw it already. Thanks. :)