I have a wxPanel with a special background I draw myself using
EVT_ERASE_BACKGROUND(func). On that panel I also have quite a lot of
wxStaticText()s. Once in a while I update all of the static texts at once
resulting in that the redraw-background function gets called something
like 30 times in a row.
Is there some way to stop the background event from being generated while
it isn't needed for it to be called? Freeze() and Thaw() doesn't
help. I.e. I want to first update all the texts, then for the background
to be redrawn once, then the texts upon it should be drawn.
Anyone have any ideas how to do this?
/Ragnar