I have a wxTextCtrl located directly above a wxListCtrl that does not
repaint when the window is resized. When the window changes size the text
control ends up overlapping the list control. I have placed
style=wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE
in both my wxFrame and wxScrolledWindow constructors. When I remove
wxNO_FULL_REPAINT_ON_RESIZE the text control gets redrawn but then the whole
frame flickers.
Does anyone know why this text box is not repainting?
I have a wxTextCtrl located directly above a wxListCtrl that does not
repaint when the window is resized. When the window changes size the text
control ends up overlapping the list control. I have placed
style=wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE
in both my wxFrame and wxScrolledWindow constructors. When I remove
wxNO_FULL_REPAINT_ON_RESIZE the text control gets redrawn but then the whole
frame flickers.
Does anyone know why this text box is not repainting?
If they are overlapping then you should manage the layout with sizers or something such that they don't overlap. IF it's just a matter of the text not getting fully refreshed this is the reason that wxNO_FULL_REPAINT_ON_RESIZE is not the default style, sometimes it unpredictably causes this to happen. You should be able to call Refresh on the text preodically (or after resizing) to take care of it.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!