difference between remove/freeAllSeries?
Posted: Wed Jun 13, 2007 11:53 am
Hi,
this is no actual problem, but I'm interested
in these procedures working.
I have a TCustomChart which opens a new form and
with a own copy procedure, I copy this TCustomChart.
After closing the new Form, I copy this chart back.
I noticed, if I use freeAllSeries(), then only the first(in my case a
TSurfaceSerie) Serie is shown.
But using RemoveAllSeries() all Series are visible.
This happens when I close the form(so in the secound copy
call)
If you cannot answer this, no problem.
Kind regards,
HMI
this is no actual problem, but I'm interested
in these procedures working.
I have a TCustomChart which opens a new form and
with a own copy procedure, I copy this TCustomChart.
After closing the new Form, I copy this chart back.
Code: Select all
procedure TKoordSys3D.copy(p_koordSys: TKoordSys3D);
var l_temp_height, l_temp_width, l_temp_top, l_temp_left, l_i : integer;
begin
l_temp_height := Height;
l_temp_width := Width;
l_temp_top := Top;
l_temp_left := Left;
Assign(p_koordSys);
Height := l_temp_height;
Width := l_temp_width;
Top := l_temp_top;
Left := l_temp_left;
removeAllSeries();
for l_i := 0 to p_koordSys.SeriesCount - 1 do
begin
AddSeries(CloneChartSeries(p_koordSys[l_i]));
end;
end;
TSurfaceSerie) Serie is shown.
But using RemoveAllSeries() all Series are visible.
This happens when I close the form(so in the secound copy
call)
If you cannot answer this, no problem.
Kind regards,
HMI