TeeChart Pro 8 Marks

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kennedyr
Newbie
Newbie
Posts: 2
Joined: Thu Jun 19, 2008 12:00 am

TeeChart Pro 8 Marks

Post by kennedyr » Wed Jun 25, 2008 7:03 pm

I am trying to edit the fontsize of a series mark from the editor. The font size will change on the design time chart but at run time it is still size 8. I also tried in code but the font still doesnt change. What am I doing wrong?

Thanks

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Jun 26, 2008 8:10 am

Hi kennedyr,

I've done some tests with Line, Point, Bar, Pie and Area series and font's size marks seems to work fine for me here both at design and run time.

Code: Select all

Series1.Marks.Font.Size := 15;
Could you explain the steps you follow more accurately or could you send us a simple example project we can run as-is to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

kennedyr
Newbie
Newbie
Posts: 2
Joined: Thu Jun 19, 2008 12:00 am

Post by kennedyr » Fri Jun 27, 2008 3:09 pm

Simply changing the font size for the mark in the series editor doesnt change the font at run time. Where does the code to change the font size need to be called from? Are there any other properties that need to be set? custom?


procedure TForm2.LoadChart;
var
d : double;
sMsg : string;
i : word;
begin
Series1.Marks.Font.Size := 16;

d := 10.0;
for i := 0 to 20 do begin
if i mod 5 = 0 then sMsg := FloatToStrF(d, ffFixed, 3, 1)
else sMsg := '';

Series1.AddXY(i, d, '');
if Trim(sMSG) = '' then Series1.Marks.Item.Text.Add('')
else Series1.Marks.Item.Text.Add(sMSG);
end;
end;

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 27, 2008 3:33 pm

Hi kennedyr,

Setting marks as you do should be enough. However, if you are using custom marks then you may need to do this:

Code: Select all

Series1.Marks.Item[i].Font.Size := 16;
Best Regards,
Narcís Calvet / 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