X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e0e025ecd13ae6d1470e72b428e934748ce66d6..a56fcaaf46ccce9f6f79b8fad977dfe5a721ea61:/src/gtk/statbox.cpp?ds=sidebyside diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index b7697b9ce7..7afc40103d 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -45,7 +45,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) { wxFAIL_MSG( wxT("wxStaticBox creation failed") ); - return FALSE; + return FALSE; } m_isStaticBox = TRUE; @@ -61,9 +61,10 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label SetLabel(label); + SetFont( parent->GetFont() ); + SetBackgroundColour( parent->GetBackgroundColour() ); SetForegroundColour( parent->GetForegroundColour() ); - SetFont( parent->GetFont() ); Show( TRUE );