+wxStaticBox::wxStaticBox()
+{
+}
+
+wxStaticBox::wxStaticBox( wxWindow *parent,
+ wxWindowID id,
+ const wxString &label,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString& name )
+{
+ Create( parent, id, label, pos, size, style, name );
+}
+
+bool wxStaticBox::Create( wxWindow *parent,
+ wxWindowID id,
+ const wxString& label,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString& name )
+{
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
+ {
+ wxFAIL_MSG( wxT("wxStaticBox creation failed") );
+ return false;
+ }
+
+ m_widget = GTKCreateFrame(label);
+ g_object_ref(m_widget);
+
+ // only base SetLabel needs to be called after GTKCreateFrame
+ wxControl::SetLabel(label);
+
+ m_parent->DoAddChild( this );