WinCE Graphic Resized but not drawn in new region
Posted: Mon Nov 03, 2008 8:58 pm
Hi,
I use your teechart with windows CE and when my application is running, I must be change the graphic size. The problem is: when I expand the graphic, the graphic isn’t drawn in the new region.
I look in my code and in your code, and I think I found the problem.
In your class “PocketChart” in the function “OnPaint”, you create the “buffer” bitmap with the right dimension, but, when the “OnResize” is called, the dimension of this buffer isn’t resized.
I think that the easiest solution is to put the buffer to null in the function “OnResize” and it’s will automatically recalculate in the OnPaint function…
What are you thinking about that? Do you have a better solution?
I use your teechart with windows CE and when my application is running, I must be change the graphic size. The problem is: when I expand the graphic, the graphic isn’t drawn in the new region.
I look in my code and in your code, and I think I found the problem.
In your class “PocketChart” in the function “OnPaint”, you create the “buffer” bitmap with the right dimension, but, when the “OnResize” is called, the dimension of this buffer isn’t resized.
I think that the easiest solution is to put the buffer to null in the function “OnResize” and it’s will automatically recalculate in the OnPaint function…
What are you thinking about that? Do you have a better solution?