// Name: stattext.cpp
// Purpose:
// Author: Robert Roebling
-// Created: 01/02/97
-// Id:
-// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Id: $Id$
+// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxStaticText::wxStaticText(void)
{
-};
+}
wxStaticText::wxStaticText( 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 wxStaticText::Create( wxWindow *parent, wxWindowID id, const wxString &label,
const wxPoint &pos, const wxSize &size,
PostCreation();
+ SetBackgroundColour( parent->GetBackgroundColour() );
+ SetForegroundColour( parent->GetForegroundColour() );
+
Show( TRUE );
return TRUE;
-};
+}
wxString wxStaticText::GetLabel(void) const
{
gtk_label_get( GTK_LABEL(m_widget), &str );
wxString tmp( str );
return tmp;
-};
+}
void wxStaticText::SetLabel( const wxString &label )
{
wxControl::SetLabel(label);
gtk_label_set( GTK_LABEL(m_widget), m_label );
-};
+}
+
+void wxStaticText::ApplyWidgetStyle()
+{
+ SetWidgetStyle();
+ gtk_widget_set_style( m_widget, m_widgetStyle );
+}
+