Help for TeeChart

I am new for FireMonkey.  I am wondering how to change color in the TeeChart.

I used to use VCL, which can directly set the Font color an Pen color
Chart1->Canvas->Font->Color = clBlue;
Chart1->Canvas->TextOut(100,100,"TEST");

Chart1->Canvas->Pen->Color = clRed;
Chart1->Canvas->MoveTo(50,50);
Chart1->Canvas->LineTo(100,100);

While in FireMonkey, it would be errors when compiling
[bcc64 Error] ViewerMain.cpp(10): 'Font' is a protected member of 'Fmxtee::Canvas::TCanvas3D'
  FMXTee.Canvas.hpp(1621): declared protected here
[bcc64 Error] ViewerMain.cpp(10): use of undeclared identifier 'clBlue'
[bcc64 Error] ViewerMain.cpp(13): 'Pen' is a protected member of 'Fmxtee::Canvas::TCanvas3D'
  FMXTee.Canvas.hpp(1620): declared protected here
[bcc64 Error] ViewerMain.cpp(13): use of undeclared identifier 'clRed'

BTW, I am using C++Builder XE6.
0
Yiqiong
8/5/2015 7:24:15 PM
embarcadero.delphi.firemonkey 4901 articles. 3 followers. Follow

1 Replies
553 Views

Similar Articles

[PageSpeed] 39

Am 05.08.2015 um 21:24 schrieb Yiqiong Wu:
> I am new for FireMonkey.  I am wondering how to change color in the TeeChart.
> 
> I used to use VCL, which can directly set the Font color an Pen color
> Chart1->Canvas->Font->Color = clBlue;
> Chart1->Canvas->TextOut(100,100,"TEST");
> 
> Chart1->Canvas->Pen->Color = clRed;
> Chart1->Canvas->MoveTo(50,50);
> Chart1->Canvas->LineTo(100,100);
> 
> While in FireMonkey, it would be errors when compiling
> [bcc64 Error] ViewerMain.cpp(10): 'Font' is a protected member of 'Fmxtee::Canvas::TCanvas3D'
>   FMXTee.Canvas.hpp(1621): declared protected here
> [bcc64 Error] ViewerMain.cpp(10): use of undeclared identifier 'clBlue'
> [bcc64 Error] ViewerMain.cpp(13): 'Pen' is a protected member of 'Fmxtee::Canvas::TCanvas3D'
>   FMXTee.Canvas.hpp(1620): declared protected here
> [bcc64 Error] ViewerMain.cpp(13): use of undeclared identifier 'clRed'
> 
> BTW, I am using C++Builder XE6.
> 

For what element do you want to set the color?
For your series? Or for the chart background? Or some axis? Or?

Greetings

Markus
0
Markus
8/10/2015 6:12:46 PM
Reply: