X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d015713e787da8241e92ff86ee2e911868b8024c..f87a708b143329a5b7f4e18e88967853c553082d:/src/mac/carbon/stattext.cpp?ds=sidebyside diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index 06d6fe9c3c..a99f6c4e69 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -15,6 +15,8 @@ #include "wx/app.h" #include "wx/stattext.h" +#include "wx/dc.h" +#include "wx/dcclient.h" #include @@ -59,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc ) return; PrepareDC(dc); - dc.Clear() ; +// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels) int x = 0 ; int y = 0 ; @@ -257,7 +259,9 @@ void wxStaticText::SetLabel(const wxString& st ) m_label = st ; if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) ) SetSizeOrDefault() ; - - wxClientDC dc(this); - OnDraw( dc ) ; + + Refresh() ; + MacUpdateImmediately() ; +// wxClientDC dc(this); +// OnDraw( dc ) ; }