Inheriting from Steema.TeeChart.TChart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Casper JH Erasmus
Newbie
Newbie
Posts: 17
Joined: Wed Oct 13, 2004 4:00 am
Location: South Africa

Inheriting from Steema.TeeChart.TChart

Post by Casper JH Erasmus » Thu Sep 08, 2005 10:24 am

Hi,

I'm developing special scientific diagrams, which uses predominantly shapes. What would be the most effective and efficient method of creating my own diagrams through inheritance: to inherit from the Steema.TeeChart.TChart class, or to create each diagram as a usercontrol?

Regards,
***************************************
Casper JH Erasmus
Solution Architect

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

Post by Narcís » Fri Sep 09, 2005 11:14 am

Hi Casper,

Which specific kind of diagrams are you planning to draw? Can you post any image or URL we can have a look at to figure it out? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Have you considered using Shape series?

To create your own custom series you should inherit from Steema.TeeChart.Styles.Series class.
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

Casper JH Erasmus
Newbie
Newbie
Posts: 17
Joined: Wed Oct 13, 2004 4:00 am
Location: South Africa

Post by Casper JH Erasmus » Fri Sep 16, 2005 9:05 am

For some reason I can't connect to the newsgroup you mentioned. So I'll try to describe the diagram.

It's a tri-linear diagram that consists of two isosceles triangles next to each other. At the top of the two triangles, situated in the middle is a diamond. The normal x-y axis does not apply when plotting data on the diagram. This is only one example.

My concern is the best implementation to follow. Because I have a number of different types of graphs, of which the above mentioned is only one example, I'm thinking this:

1. Derive my base graph/diagram from TChart and call it e.g. BaseChart.

2. Derive from BaseChart a PiperChart.

3. Override the OnPaint event of TChart to do the special drawing.

My original question is: when I derive in (1), do I create a class and derive from TChart OR do I create a user control, throw a TChart control on the user control and override the OnPaint event?

Thanks
Regards
***************************************
Casper JH Erasmus
Solution Architect

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

Post by Narcís » Mon Sep 19, 2005 10:38 am

Hi Casper,

You should derive your class from Steema.TeeChart.Styles.Series to create your custom Shape series. I'm going to send an example of how to do that to your company contact e-mail address. If you wish this to be sent anywhere else please let me know.
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

Casper JH Erasmus
Newbie
Newbie
Posts: 17
Joined: Wed Oct 13, 2004 4:00 am
Location: South Africa

Post by Casper JH Erasmus » Tue Sep 20, 2005 5:42 am

Hi,

Please send it to casper@dwaf.gov.za. Thanks, I'll have a look at it.

Regards
***************************************
Casper JH Erasmus
Solution Architect

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

Post by Narcís » Tue Sep 20, 2005 7:51 am

Hi Casper,

Done!
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