Page 1 of 1
TeeChart Pro 8 Marks
Posted: Wed Jun 25, 2008 7:03 pm
by 10549419
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
Posted: Thu Jun 26, 2008 8:10 am
by yeray
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.
Posted: Fri Jun 27, 2008 3:09 pm
by 10549419
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;
Posted: Fri Jun 27, 2008 3:33 pm
by narcis
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;