// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "stattext.h"
#endif
+#include "wx/wxprec.h"
+
#include "wx/app.h"
#include "wx/stattext.h"
#include "wx/notebook.h"
}
if ( m_label.Length() == 0 )
bounds.h = 0 ;
+
+ bounds.h += MacGetLeftBorderSize() + MacGetRightBorderSize() ;
+ bounds.v += MacGetTopBorderSize() + MacGetBottomBorderSize() ;
return wxSize(bounds.h, bounds.v);
}
InvalidateBestSize();
SetSize( GetBestSize() ) ;
}
-
+ Refresh() ;
Update() ;
}
if ( ret )
{
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
- {
- InvalidateBestSize();
- SetSize( GetBestSize() );
- }
+ {
+ InvalidateBestSize();
+ SetSize( GetBestSize() );
+ }
}
return ret;