Page 1 of 1

TTreeFont

Posted: Thu Aug 11, 2016 5:43 am
by 16577003
Hi
I have problem with TTreeFont.

Code: Select all

RChart.Legend.Font := FFont;
got Incompatible types: 'TTeeFont' and 'TFont' message

any solutions?

Re: TTreeFont

Posted: Thu Aug 11, 2016 10:23 am
by 10050769
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