X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e53b3d16de127872e39bf276f7e616b32f161645..ca9eebc34612c8bc3cdb8530ea355caf3eff5df0:/src/osx/statbox_osx.cpp diff --git a/src/osx/statbox_osx.cpp b/src/osx/statbox_osx.cpp index 2b7b57ee08..f6df81bcac 100644 --- a/src/osx/statbox_osx.cpp +++ b/src/osx/statbox_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 -// RCS-ID: $Id: statbox.cpp 54129 2008-06-11 19:30:52Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -16,8 +16,6 @@ #include "wx/statbox.h" #include "wx/osx/private.h" -IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) - bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString& label, @@ -32,7 +30,7 @@ bool wxStaticBox::Create( wxWindow *parent, return false; m_labelOrig = m_label = label; - + m_peer = wxWidgetImpl::CreateGroupBox( this, parent, id, label, pos, size, style, GetExtraStyle() ); MacPostControlCreate( pos, size ); @@ -65,5 +63,14 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const *borderOther = other; } +bool wxStaticBox::SetFont(const wxFont& font) +{ + bool retval = wxWindowBase::SetFont( font ); + + // dont' update the native control, it has its own small font + + return retval; +} + #endif // wxUSE_STATBOX