Board index » cppbuilder » TChart

TChart


2006-11-06 12:02:47 AM
cppbuilder37
hi all im trying to change the title of a chart dynamically. So i tryed the
following and it doesnt seem to work
TChart *HistChart;
HistChart->Title = (TChartTitle*)"Grey Level Histogram"; If anyone can help
with this regard I would be greatly appreciated.
Mike
 
 

Re:TChart

Moon2 wrote:
Quote
hi all im trying to change the title of a chart dynamically. So i tryed the
following and it doesnt seem to work
TChart *HistChart;
You have to use the new operator :
TChart *HistChart = new TChart(this);
Quote
HistChart->Title = (TChartTitle*)"Grey Level Histogram";
Why do you use a cast here?
HistChart->Title = "Grey Level Histogram";
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
www.leunen.com/
----------------------------------------