Hi
I read about accessing a series more directly via say
mychart[0].add(blah blah)
but when using a non default series, which has more than the default data entry, eg a candle (via addcandl) or a addxyz to a surface type chart
how do you access that series directly?
because after saving and then re loading a .tee config file for those charts, using the , series1.addxyz or series1.addcandle, causes an access violation
or some other work around
thanks!
ps, great set of components, kudos!
pps, I am wanting to compile on Lazarus for the Mac...any pointers?
thanks!
Brian
Using addcandle, addxyz, after loading a .tee file
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Using addcandle, addxyz, after loading a .tee file
Hi Brian,
Hope this helps!
This is because you need to typecast the series to the series type you need, for example:I read about accessing a series more directly via say
mychart[0].add(blah blah)
but when using a non default series, which has more than the default data entry, eg a candle (via addcandl) or a addxyz to a surface type chart
how do you access that series directly?
because after saving and then re loading a .tee config file for those charts, using the , series1.addxyz or series1.addcandle, causes an access violation
or some other work around
Code: Select all
(Chart1[0] as TSurfaceSeries).AddXYZ(x, y, z);
(Chart1[1] as TCandleSeries).AddCandle(date, open, high, low, close);
Thank you very muchps, great set of components, kudos!
For that you need to have a TeeChart Pro v8 VCL source code license. Find attach TeeChart.lpk and compile.bat to generate your TeeChart packages for Lazarus. Please notice that you'll have to change the fixed paths at compile.bat. Also notice that probably TeeChart no longer works using latest Lazarus versions, some change broke it. We haven't been able to find a solution so far. With old Lazarus versions, previous to 0.9.24 from November 2007, should work fine.pps, I am wanting to compile on Lazarus for the Mac...any pointers?
Hope this helps!
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Using addcandle, addxyz, after loading a .tee file
Hi Brian,
Sorry, I forgot the attachment . Here it is.
Sorry, I forgot the attachment . Here it is.
- Attachments
-
- TeeChartForLazarus.zip
- (1.13 KiB) Downloaded 770 times
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 |
Re: Using addcandle, addxyz, after loading a .tee file
Hi
thanks for the tip on the series direct access!
I will work on that today
re Lazarus, I do have the pro 8 sources
re the .bat file, I will see if I can get that to work via a terminal window on the mac (changing the paths, etc)
thanks!
(I had tried to create my own package and comile the Teechartreg.pas, but ran into problems with the OS not being detected in the code and windows wanting to be used and then also other sections of code no detecting OSX )
thanks for the tip on the series direct access!
I will work on that today
re Lazarus, I do have the pro 8 sources
re the .bat file, I will see if I can get that to work via a terminal window on the mac (changing the paths, etc)
thanks!
(I had tried to create my own package and comile the Teechartreg.pas, but ran into problems with the OS not being detected in the code and windows wanting to be used and then also other sections of code no detecting OSX )