Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errormessage when changing the color of a curve in TChart

Status
Not open for further replies.

Bachatero

Programmer
Aug 30, 2006
36
NL
Hi,

I would like to change the color of a curve in TChart by:

Energy->SetSeriesColor(GetDefaultColor(16));

however the following error message is displayed:

[C++ Error] Main.cpp(647): E2247 '_fastcall TChartSeries::SetSeriesColor(TColor)' is not accessible

Anay idea why?

Thanks in advance.

Johan
 
I suspect that the problem lies with the number 16. GetDefaultColor is probably expecting an enumeration like clRed instead of an integer.


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top