|
How can i creat two charts in different location ? |
Posted by JSF on Nov-16-2016 21:15 |
|
actually i want to creat two charts in the same dialog, but i can't find the function to pull down the chart . as a result, two charts are in the same location and one is hidden.
how can i move the chart ?
|
Re: How can i creat two charts in different location ? |
Posted by Peter Kwan on Nov-17-2016 01:29 |
|
Hi JSF.
You can position the chart just like any other controls (the same as positioning push buttons or other controls). If you are using the dialog editor to layout the controls, you just need to put the CChartViewer control in the position you want. See the attached image for an example.
In the ChartDirector/mfcdemo/mfcdemo sample code, some examples can show up to 6 charts on the screen. For that sample code, the position is variable and is using the MFC CWnd.MoveWindow method. You may refer to Microsoft documentation for details. See:
https://msdn.microsoft.com/en-us/library/1xb05f0h.aspx#cwnd__movewindow
Hope this can help.
Regards
Peter Kwan
|
Re: How can i creat two charts in different location ? |
Posted by JSF on Nov-17-2016 17:45 |
|
thanks very much.
the method movewindow works!~ |
|