How to create a custom function?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
OptiSurface
Newbie
Newbie
Posts: 5
Joined: Fri Feb 08, 2013 12:00 am

How to create a custom function?

Post by OptiSurface » Fri Jul 19, 2013 12:06 pm

I want to add a custom function.
It should create a new series using a existing series but with some distance offset added to existing series data.

Please suggest me how should i proceed to create a custom function.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: How to create a custom function?

Post by Narcís » Fri Jul 19, 2013 1:41 pm

Hi OptiSurface,

You should create your own series class inheriting from the series most similar to the series you need to create. There you can override series/values drawing methods to render points to fit your requirements. You can also add additional properties or ValueLists in the custom class and use them for painting the series as well. If you are a source code customer you can check current series implementation as a guide.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply