wxNO_FULL_REPAINT_ON_RESIZE

wxFrame.__init__(self,parent,id,title,size=(200,100),style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
what does wxNO_FULL_REPAINT_ON_RESIZE do ?

Jonas Geiregat wrote:

wxFrame.__init__(self,parent,id,title,size=(200,100),style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)

what does wxNO_FULL_REPAINT_ON_RESIZE do ?

Exactly what it says. :wink: It specifies that when the window is resized that only the freshly exposed portion will be marked as "dirty" in the paint event and the whole window won't be cleared. Then the EVT_PAINT handler (either yours or the default native one) can be optimized to only paint the new areas.

Personally I think that this should be the default and there should be a style that turns on current default behavior, but that would likely break too many existing apps.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!