Is there a way to change a FastLine Series into a LineSeries and back at runtime? I can do this executing the ChartEditor at runtime and it works fine. I would like to just make a user checked option for this. Why do I want to do this? Because I am doing high speed multichannel Data Acquisition which works very well using FastLine. However, I would like to see my sample density after the chart has been populated. This can be seen perfectly with Series Points turned on which is not available in FastLine. It seems to me that if I can do this through the ChartEditor, I should be able to do it programatically.
Thanks,
Kev
Change Series at Runtime
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Kev,
Yes, you can do that using something like:
Yes, you can do that using something like:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var tmp: TChartSeries;
begin
tmp := Chart1[0];
ChangeSeriesType(tmp,TFastLineSeries);
end;
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 |
Change Series at Runtime (Builder)
Anyone want to take a stab at this one? See the previous post.
thanks,
kev
thanks,
kev
Hi Kev,
you can do :
you can do :
Code: Select all
TChartSeries *ser;
ser = Series1;
ChangeSeriesType(ser,__classid(TPointSeries));
Pep Jorge
http://support.steema.com
http://support.steema.com
Change Series at Runtime Builder
I must have tried every other "cast" besides that one. It works fine.
Thanks,
Kev
Thanks,
Kev