[wxPython] wxClientDC redrawing problem

I'm writing an application that includes a whiteboard. For this I use a frame with a wxClientDC. However, when part of the window is hidden by another window, anything drawn there disappears. Any ideas on how to prevent this?

Thanks,
Jason Prentice

···

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

I'm writing an application that includes a whiteboard. For this I use a
frame with a wxClientDC. However, when part of the window is hidden by
another window, anything drawn there disappears. Any ideas on how to
prevent this?

Catch the EVT_PAINT event and then redraw either the damaged area or the
whole window. There are several samples in the demo that do this.

···

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