]> 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 ff04717a748502fdf17f96635012ec8b46a4dbcc..2652017d4476ac1c175f32e30df6f2fc018d532c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////
-// Name:        univ/tglbtn.cpp
+// Name:        src/univ/tglbtn.cpp
 // Purpose:     wxToggleButton
 // Author:      Vadim Zeitlin
 // Modified by: David Bjorkevik
 // Purpose:     wxToggleButton
 // Author:      Vadim Zeitlin
 // Modified by: David Bjorkevik
@@ -19,7 +19,7 @@
 
 #include "wx/tglbtn.h"
 
 
 #include "wx/tglbtn.h"
 
-wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent )
+wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent );
 
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxButton)
 
 
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxButton)
 
@@ -83,7 +83,7 @@ void wxToggleButton::Toggle()
 
 void wxToggleButton::Click()
 {
 
 void wxToggleButton::Click()
 {
-    wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, GetId());
+    wxCommandEvent event(wxEVT_TOGGLEBUTTON, GetId());
     InitCommandEvent(event);
     event.SetInt(GetValue());
     Command(event);
     InitCommandEvent(event);
     event.SetInt(GetValue());
     Command(event);