Hey,
I'm assigning manually some parts of the chart (axis, legend, annotation), but I noticed there is no TAnnotationTool.Assign() function. Is there another way to copy an annotation look ?
Tx
TAnnotationTool : no assign function ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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 |
Hi,
for the moment there's no way to copy all the properties automatically, however it's on our wish list to be considered for further releases.
In meantime a workaround is to set them manually, ie :
for the moment there's no way to copy all the properties automatically, however it's on our wish list to be considered for further releases.
In meantime a workaround is to set them manually, ie :
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
Chart2.Tools.Clear;
Chart2.Assign(Chart1);
for i:=0 to Chart1.Tools.Count-1 do
begin
CloneChartTool(Chart1.Tools[i],Chart2).ParentChart:=Chart2;
if (Chart1.Tools[i] is TAnnotationTool) then
(Chart2.Tools.Items[i] as TAnnotationTool).Position := (chart1.tools[i] as TAnnotationTool).position;
end;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com