By default when a window is resized only the newly exposed portions of the window are part of the update region sent in the next paint event, and the rest of the window is clipped. IOW, only the drawing done to the newly exposed area is shown. Most of the time this is a good optimization and helps to reduce flicker. In cases like yours however, where the content or the scale of what is being draw is based on the size of the window, then you can get some weird drawing artifacts. The solution is to use the wx.FULL_REPAINT_ON_RESIZE style on the window that has the wx.EVT_PAINT event handler, then none of the window's area will be clipped after resize events.
···
On 5/15/11 1:12 PM, iozk_Live wrote:
I'm drawing an object in the frame and when resize the window, the
rectangle is draw in the side that i resizing.
why? and how fix that?