| View previous topic :: View next topic |
| Author |
Message |
Moon2 Guest
|
Posted: Sun Nov 05, 2006 10:02 pm Post subject: TChart |
|
|
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 |
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Sun Nov 05, 2006 11:29 pm Post subject: 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:
http://www.leunen.com/
---------------------------------------- |
|
| Back to top |
|
 |
|