// ----------------------------------------------------------------------------
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());