X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/tglbtn.cpp diff --git a/src/univ/tglbtn.cpp b/src/univ/tglbtn.cpp index f9d541af6d..2652017d44 100644 --- a/src/univ/tglbtn.cpp +++ b/src/univ/tglbtn.cpp @@ -19,7 +19,7 @@ #include "wx/tglbtn.h" -wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent ); +wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent ); IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxButton) @@ -83,7 +83,7 @@ void wxToggleButton::Toggle() void wxToggleButton::Click() { - wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, GetId()); + wxCommandEvent event(wxEVT_TOGGLEBUTTON, GetId()); InitCommandEvent(event); event.SetInt(GetValue()); Command(event);