Page 1 of 1
Inheriting from Steema.TeeChart.TChart
Posted: Thu Sep 08, 2005 10:24 am
by 8127541
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,
Posted: Fri Sep 09, 2005 11:14 am
by narcis
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.
Posted: Fri Sep 16, 2005 9:05 am
by 8127541
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
Posted: Mon Sep 19, 2005 10:38 am
by narcis
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.
Posted: Tue Sep 20, 2005 5:42 am
by 8127541
Hi,
Please send it to
casper@dwaf.gov.za. Thanks, I'll have a look at it.
Regards
Posted: Tue Sep 20, 2005 7:51 am
by narcis
Hi Casper,
Done!