/////////////////////////////////////////////////////////////////////////////
-// Name: univ/tglbtn.cpp
+// Name: src/univ/tglbtn.cpp
// Purpose: wxToggleButton
// Author: Vadim Zeitlin
// Modified by: David Bjorkevik
#include "wx/tglbtn.h"
-wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
+wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent );
IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxButton)
void wxToggleButton::Click()
{
- wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, GetId());
+ wxCommandEvent event(wxEVT_TOGGLEBUTTON, GetId());
InitCommandEvent(event);
event.SetInt(GetValue());
Command(event);