SelectChart
Posted: Tue Dec 20, 2005 9:12 pm
I have the following code:
TChartSeriesClass list[5] = {__classid(TFastLineSeries), __classid(TLineSeries), __classid(THorizLineSeries), __classid(TBarSeries), __classid(THorizBarSeries)};
ChartGalleryPanel1->CreateChartList(EXISTINGARRAY(list));
ChartGalleryPanel1->SelectChart(ChartGalleryPanel1->Charts[2]);
I am trying to select a chart in the gallery panel programmatically and saw an example of this elsewhere in the forum, however, the SelectChart parameter requires a TGalleryChart, not a TChartGalleryPanel. How do I get there?
Thanks
TChartSeriesClass list[5] = {__classid(TFastLineSeries), __classid(TLineSeries), __classid(THorizLineSeries), __classid(TBarSeries), __classid(THorizBarSeries)};
ChartGalleryPanel1->CreateChartList(EXISTINGARRAY(list));
ChartGalleryPanel1->SelectChart(ChartGalleryPanel1->Charts[2]);
I am trying to select a chart in the gallery panel programmatically and saw an example of this elsewhere in the forum, however, the SelectChart parameter requires a TGalleryChart, not a TChartGalleryPanel. How do I get there?
Thanks