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,
Inheriting from Steema.TeeChart.TChart
-
- Newbie
- Posts: 17
- Joined: Wed Oct 13, 2004 4:00 am
- Location: South Africa
Inheriting from Steema.TeeChart.TChart
***************************************
Casper JH Erasmus
Solution Architect
Casper JH Erasmus
Solution Architect
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Wed Oct 13, 2004 4:00 am
- Location: South Africa
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
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
Casper JH Erasmus
Solution Architect
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Wed Oct 13, 2004 4:00 am
- Location: South Africa
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Casper,
Done!
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 |
Instructions - How to post in this forum |