wxStaticText::wxStaticText( wxWindow *parent, wxWindowID id, const wxString &label,
const wxPoint &pos, const wxSize &size,
- const long style, const wxString &name )
+ long style, const wxString &name )
{
Create( parent, id, label, pos, size, style, name );
};
bool wxStaticText::Create( wxWindow *parent, wxWindowID id, const wxString &label,
const wxPoint &pos, const wxSize &size,
- const long style, const wxString &name )
+ long style, const wxString &name )
{
m_needParent = TRUE;
PreCreation( parent, id, pos, size, style, name );
- m_widget = gtk_label_new( label );
+ wxControl::SetLabel(label);
+ m_widget = gtk_label_new( m_label );
+
GtkJustification justify;
if ( style & wxALIGN_CENTER )
justify = GTK_JUSTIFY_CENTER;
void wxStaticText::SetLabel( const wxString &label )
{
- gtk_label_set( GTK_LABEL(m_widget), label );
+ wxControl::SetLabel(label);
+
+ gtk_label_set( GTK_LABEL(m_widget), m_label );
};