X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd88c1fa96cc76c97e29f01f885423b3887a73ec..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/tglbtn.cpp?ds=sidebyside diff --git a/src/univ/tglbtn.cpp b/src/univ/tglbtn.cpp index b8649b010a..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" -DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED) +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);