X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e75491071dbefcada61175e3eb89ce4edf335983..d3e90957cf70726bba42af977632223ff37439e1:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index 220ff1e0a9..5065b239e9 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -18,7 +18,6 @@ #include "wx/tabctrl.h" #include "wx/spinbutt.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow) BEGIN_EVENT_TABLE(wxControl, wxWindow) @@ -26,7 +25,6 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow) EVT_CHAR( wxControl::OnKeyDown ) EVT_PAINT( wxControl::OnPaint ) END_EVENT_TABLE() -#endif #include @@ -587,6 +585,14 @@ void wxControl::OnPaint(wxPaintEvent& event) // wxWindow::OnPaint( event ) ; } } +void wxControl::OnEraseBackground(wxEraseEvent& event) +{ + // In general, you don't want to erase the background of a control, + // or you'll get a flicker. + // TODO: move this 'null' function into each control that + // might flicker. +} + void wxControl::OnKeyDown( wxKeyEvent &event ) {