IMPLEMENT_DYNAMIC_CLASS(wxButton,wxControl)
-wxButton::wxButton(void)
+wxButton::wxButton()
{
}
+wxButton::~wxButton()
+{
+ if (m_clientData) delete m_clientData;
+}
+
bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
const wxPoint &pos, const wxSize &size,
long style, const wxValidator& validator, const wxString &name )
{
+ m_clientData = (wxClientData*) NULL;
m_needParent = TRUE;
wxSize newSize = size;
gtk_signal_connect( GTK_OBJECT(m_widget), "clicked",
GTK_SIGNAL_FUNC(gtk_button_clicked_callback), (gpointer*)this );
+ m_parent->AddChild( this );
+
+ (m_parent->m_insertCallback)( m_parent, this );
+
PostCreation();
SetBackgroundColour( parent->GetBackgroundColour() );
gtk_widget_set_style( GTK_BUTTON(m_widget)->child, m_widgetStyle );
}
+