]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/tglbtn.cpp
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / src / univ / tglbtn.cpp
index f9d541af6d6956af59597706df717c2af892d305..2652017d4476ac1c175f32e30df6f2fc018d532c 100644 (file)
@@ -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);