BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TChart

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Moon2
Guest





PostPosted: Sun Nov 05, 2006 10:02 pm    Post subject: TChart Reply with 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;
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





PostPosted: Sun Nov 05, 2006 11:29 pm    Post subject: Re: TChart Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.