]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
Tought Systemettings that sysfont has 12 pts
[wxWidgets.git] / src / gtk / statbox.cpp
index 0f720039d319f08303fafc3ca16ecda035232b3f..59282af9917f5ac38b44b0bb7f28d96e614ae901 100644 (file)
@@ -44,6 +44,9 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 
   SetLabel(label);
   
+  SetBackgroundColour( parent->GetBackgroundColour() );
+  SetForegroundColour( parent->GetForegroundColour() );
+
   Show( TRUE );
 
   return TRUE;
@@ -55,3 +58,10 @@ void wxStaticBox::SetLabel( const wxString &label )
   GtkFrame *frame = GTK_FRAME( m_widget );
   gtk_frame_set_label( frame, GetLabel() );
 }
+
+void wxStaticBox::ApplyWidgetStyle()
+{
+  SetWidgetStyle();
+  gtk_widget_set_style( m_widget, m_widgetStyle );
+}
+