TTreeFont

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

TTreeFont

Post by n2n » Thu Aug 11, 2016 5:43 am

Hi
I have problem with TTreeFont.

Code: Select all

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

any solutions?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TTreeFont

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply