#include "wx/tglbtn.h"
#include "wx/osx/private.h"
-#include "wx/osx/bmpbuttn.h" // for wxDEFAULT_BUTTON_MARGIN
+#include "wx/bmpbuttn.h" // for wxDEFAULT_BUTTON_MARGIN
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxControl)
-DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)
+wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
// ============================================================================
// implementation
ProcessCommand(event);
}
-bool wxToggleButton::HandleClicked( double timestampsec )
+bool wxToggleButton::OSXHandleClicked( double timestampsec )
{
wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId);
event.SetInt(GetValue());
ProcessCommand(event);
}
-bool wxBitmapToggleButton::HandleClicked( double timestampsec )
+bool wxBitmapToggleButton::OSXHandleClicked( double timestampsec )
{
wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId);
event.SetInt(GetValue());