// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "stattext.h"
#endif
-#include "wx/defs.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
#if wxUSE_STATTEXT
ApplyWidgetStyle();
- wxControl::SetFont( parent->GetFont() );
+ InheritAttributes();
+// wxControl::SetFont( parent->GetFont() );
wxSize size_best( DoGetBestSize() );
wxSize new_size( size );
if ((new_size.x != size.x) || (new_size.y != size.y))
SetSize( new_size.x, new_size.y );
- SetBackgroundColour( parent->GetBackgroundColour() );
- SetForegroundColour( parent->GetForegroundColour() );
+// if (ShouldInheritColours())
+// {
+// SetBackgroundColour( parent->GetBackgroundColour() );
+// SetForegroundColour( parent->GetForegroundColour() );
+// }
Show( TRUE );
return TRUE;