X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f659fd6b10a8a5c899eaa99adc76a55322b33fd..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 3f28b07a58..009f4a5865 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -39,12 +39,20 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label PreCreation( parent, id, pos, size, style, name ); - SetLabel(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() ); +}