Custom OnPaint additions with new release
Posted: Wed Oct 10, 2007 1:28 pm
Hi,
Firstly I wanted to mention that the latest update with the double buffering update is excellent. It’s nice and fast after it’s created the chart, no more sluggish windows.
We have one minor problem as a side effect though which I’m hoping you can help with. We override the OnPaint handler to write custom header and footer information and provide some hot-tracking in a Windows Forms application. What we’re finding is that the header and footer information doesn’t always get redrawn properly when windows are dragged over the top. The underlying chart is fine but if we drag a form over the top quickly, sometimes we only see part of the custom text.
We could probably get rid of most of the existing header and footer code and re-write it to use the chart annotation method but if there’s a simple way around it to accommodate the new changes, we’d prefer to do it that way.
It would be good to know in case there are other occasions we need to override the OnPaint handler.
Firstly I wanted to mention that the latest update with the double buffering update is excellent. It’s nice and fast after it’s created the chart, no more sluggish windows.
We have one minor problem as a side effect though which I’m hoping you can help with. We override the OnPaint handler to write custom header and footer information and provide some hot-tracking in a Windows Forms application. What we’re finding is that the header and footer information doesn’t always get redrawn properly when windows are dragged over the top. The underlying chart is fine but if we drag a form over the top quickly, sometimes we only see part of the custom text.
We could probably get rid of most of the existing header and footer code and re-write it to use the chart annotation method but if there’s a simple way around it to accommodate the new changes, we’d prefer to do it that way.
It would be good to know in case there are other occasions we need to override the OnPaint handler.