Search found 2 matches
- Tue Feb 02, 2010 12:33 am
- Forum: VCL
- Topic: TChartBook->AddChart() returns NULL
- Replies: 2
- Views: 1905
Re: TChartBook->AddChart() returns NULL
Found the answer. I used the above code in the initialization of the class: __fastcall TFrame1::TFrame1(TComponent* Owner) :TFrame(Owner) { //Try to add a chart here } That doesn't work. So, I did the following: __fastcall TFrame1::TFrame1(TComponent* Owner) :TFrame(Owner) { } void TFrame1::InitFram...
- Mon Feb 01, 2010 2:51 pm
- Forum: VCL
- Topic: TChartBook->AddChart() returns NULL
- Replies: 2
- Views: 1905
TChartBook->AddChart() returns NULL
I have a form in which I've placed a TChartBook component Data_Man_ChartBook. However, when I try to add a chart to this component using the following: TCustomChart* tmp; //Add a new chart to the Data_Man_ChartBook Data_Man_ChartBook->AddChart(); Data_Man_ChartBook->ActivePageIndex = Data_Man_ChartB...