X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/904f68c7e8956b366aa48b3b5b28c2f65d678d41..02e8b2f9fbdfcd25080c42082d637da257c20094:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 4e768e3b12..009f4a5865 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -22,14 +22,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxStaticBox,wxControl) wxStaticBox::wxStaticBox(void) { -}; +} 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, @@ -39,12 +39,20 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label PreCreation( parent, id, pos, size, style, name ); - SetLabel(m_label); m_widget = gtk_frame_new(m_label); PostCreation(); + SetLabel(label); + Show( TRUE ); return TRUE; -}; +} + +void wxStaticBox::SetLabel( const wxString &label ) +{ + wxControl::SetLabel( label ); + GtkFrame *frame = GTK_FRAME( m_widget ); + gtk_frame_set_label( frame, GetLabel() ); +}