}
// and handle user clicks on it
- Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
+ Connect(GetId(), wxEVT_BUTTON,
wxCommandEventHandler(wxGenericColourButton::OnButtonClick),
NULL, this);
void wxGenericColourButton::OnButtonClick(wxCommandEvent& WXUNUSED(ev))
{
- // update the wxColouData to be shown in the the dialog
+ // update the wxColouData to be shown in the dialog
ms_data.SetColour(m_colour);
// create the colour dialog and display it