|
Group: Forum Members
Posts: 176,
Visits: 1.9K
|
This is a behaviour change between 16.8.8.12 and 17.3.6.12
On your helpful recommendation we added an INPaintCallBack and use OnBeforePaint to allow the user to change the symbol sizes on chart lines by turning the mouse wheel. This works fine in 16.8.8.12 and 17.3.6.12. However, we have found that the OnBeforePaint code affects chart export in 17.3.612 - the chart is not resized in the export when the export size is changed form the default size.
I have tracked this to these lines of code:
this.chartControl.document.Calculate(); this.chartControl.RecalcLayout();
If they are removed the export is the correct size but the symbol resizing has not been applied to the export.
Is there a different way to achieve this in 17.3.6.12?
I also notice that previously I could reorganise panel layout; e.g. moving the legend panel from right to left and the chart would redraw. Now I have to explicitly call NChartControl.Refresh().
Some general advice on the changes and recommended strategies would be much appreciated.
Thanks
Kevin
|