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
TeeChart Pro 8 Marks
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.
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.
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;
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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;
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;
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi kennedyr,
Setting marks as you do should be enough. However, if you are using custom marks then you may need to do this:
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 |
Instructions - How to post in this forum |