Resize problem in Pocket TChart
Posted: Mon May 18, 2009 10:33 am
Hi,
i am using TChart.Pocket version 3.5.3225.32184. I have created a device application which runs on Windows CE 5.0. I have a simple form in which i added a panel. Set the dock proeprty of panel to "dock.Fill". I have added a TChart inside the panel and set the Anchor property so that the T Chart is anchored to all four sides of the panel.
I added two buttons Increase and Decrease. On click of Increase i am increasing the size of the form and on click of Decrease i am decreasing the size of the form.
While increasing the size, the TChart is not rendered properly. I have tried invalidating, refreshing the Chart. but of no use. I have also tried setting the bounds of chart manually after the resize is done and also tried handling resize event of TChart, but of no use....
If i take Windows application and use TChart dll instead of TChart.Pocket, it works fine.
I have uploaded a simple example project ResizeInPocketTChart.zip at http://www.steema.net/upload/Default.aspx
i am using TChart.Pocket version 3.5.3225.32184. I have created a device application which runs on Windows CE 5.0. I have a simple form in which i added a panel. Set the dock proeprty of panel to "dock.Fill". I have added a TChart inside the panel and set the Anchor property so that the T Chart is anchored to all four sides of the panel.
I added two buttons Increase and Decrease. On click of Increase i am increasing the size of the form and on click of Decrease i am decreasing the size of the form.
While increasing the size, the TChart is not rendered properly. I have tried invalidating, refreshing the Chart. but of no use. I have also tried setting the bounds of chart manually after the resize is done and also tried handling resize event of TChart, but of no use....
If i take Windows application and use TChart dll instead of TChart.Pocket, it works fine.
I have uploaded a simple example project ResizeInPocketTChart.zip at http://www.steema.net/upload/Default.aspx