X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/904f68c7e8956b366aa48b3b5b28c2f65d678d41..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk1/statbox.cpp diff --git a/src/gtk1/statbox.cpp b/src/gtk1/statbox.cpp index 4e768e3b12..009f4a5865 100644 --- a/src/gtk1/statbox.cpp +++ b/src/gtk1/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() ); +}