TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
n2n
- Newbie

- Posts: 19
- Joined: Mon Nov 23, 2015 12:00 am
Post
by n2n » Thu Aug 11, 2016 5:43 am
Hi
I have problem with TTreeFont.
got Incompatible types: 'TTeeFont' and 'TFont' message
any solutions?
-
Sandra
- Site Admin

- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Thu Aug 11, 2016 10:23 am
Hello n2n,
TeCanvas use TTeeFont where there are some properties that derived from TFont, therefore to work with TFont, you need modify each property, isn't possible assign a TFont directly. Below I have detailed the properties derived from TFont
- Color
FontAdapter
Handle
Height
Name
Pitch
PixelsPerInch
Size
Style
Also, the code below shows you how can work with the TFont properties:
Code: Select all
Chart1.Legend.Font.Color := clRed;
Hoping this helps,
Thanks in advance