// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "stattext.h"
-#endif
-
#include "wx/wxprec.h"
+#if wxUSE_STATTEXT
+
#include "wx/app.h"
#include "wx/stattext.h"
#include "wx/notebook.h"
#include <stdio.h>
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
-#endif
#include "wx/mac/uma.h"
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
wxMacCFStringHolder str(m_label,m_font.GetEncoding() ) ;
- m_peer = new wxMacControl() ;
+ m_peer = new wxMacControl(this) ;
verify_noerr(CreateStaticTextControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, str ,
NULL , m_peer->GetControlRefAddr() ) ) ;
SetSize( GetBestSize() ) ;
}
Refresh() ;
- Update() ;
+ // we shouldn't need forced updates
+ // Update() ;
}
bool wxStaticText::SetFont(const wxFont& font)
return ret;
}
+
+#endif //if wxUSE_STATTEXT
+