Page 1 of 1

Adding TDBChart to TRichView?

Posted: Tue Feb 14, 2006 1:22 am
by GWIS
I have an application which adds TChart to TRichview. This works OK.
I also have some TDB Charts I want to add in.
Is there an equivalent of

TRVChartItemInfo.CreateEx(RichView1.RVData, Chart1, rvvaBaseline)

that can be used for a TDBChart.

What's the easiest way to do this?

Thanks

Posted: Sun Feb 19, 2006 10:02 pm
by GWIS
OK. I just copied ChartItem from Addins to DBChartItem and changed all the ..Chart.. to ..DBChart..

Posted: Mon Feb 20, 2006 8:57 am
by Sergey Tkachenko
I am sorry for delay.
It's better to replace TChart to TCustomChart. After that, this item type can be used both for TChart and TDBChart.