X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c7789014106c9269b0f4ecc1a3071b14f351d3f..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/tglbtn.cpp diff --git a/src/univ/tglbtn.cpp b/src/univ/tglbtn.cpp index ff04717a74..2652017d44 100644 --- a/src/univ/tglbtn.cpp +++ b/src/univ/tglbtn.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/tglbtn.cpp +// Name: src/univ/tglbtn.cpp // Purpose: wxToggleButton // Author: Vadim Zeitlin // Modified by: David Bjorkevik @@ -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);