// Author: Francesco Montorsi
// Modified by:
// Created: 15/04/2006
-// RCS-ID: $Id$
// Copyright: (c) Francesco Montorsi
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
}
// and handle user clicks on it
- Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
+ Connect(GetId(), wxEVT_BUTTON,
wxCommandEventHandler(wxGenericFontButton::OnButtonClick),
NULL, this);
void wxGenericFontButton::UpdateFont()
{
- if ( !m_selectedFont.Ok() )
+ if ( !m_selectedFont.IsOk() )
return;
SetForegroundColour(m_data.GetColour());