|
Can't have several charts |
Posted by Raul De Ybarrondo on Oct-28-2011 13:45 |
|
Hi,
I am having some trouble in displaying more than one chart.
I have already added an extra Pictrure Control, and added a member variable for it.
I changed the variable type from CStatic to CChartViewer...
With the first chart (the original one), everything goes very well.
Nevertheless, when I try to display the second chart, it won't appear.
Eventhough I try to display exactly the same graph with the same data, it does not appear.
Can anybody help me please?
Thanks a lot,
Raul De Ybarrondo |
Re: Can't have several charts |
Posted by Peter Kwan on Oct-28-2011 17:40 |
|
Hi Raul,
In almost all of the MFC sample code, the same CChartViewer is used to display multiple charts (see mfcdemo, financedemo, realtimedemo, zoomscrolldemo and zoomscrolldemo2).
If in your code, you cannot use the same CChartViewer to display more than 1 chart, is it possible to create an example Visual Studio project and attach it with your message (or email to me at pkwan@advsofteng.net). I need your exact code and configuration to see what could be the cause of the problem.
Regards
Peter Kwan |
|