]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/button_osx.cpp
wiring OnInit on osx to a later point in event processing
[wxWidgets.git] / src / osx / button_osx.cpp
index 32417fa88cc82aeaa1059255cc84ad25e690d3e2..bd55cf3c46de544ec59b0075b6636a8eddf21f9a 100644 (file)
@@ -128,7 +128,7 @@ void wxButton::Command (wxCommandEvent & WXUNUSED(event))
 
 bool wxButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
 {
-    wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId);
+    wxCommandEvent event(wxEVT_BUTTON, m_windowId);
     event.SetEventObject(this);
     ProcessCommand(event);
     return true;
@@ -173,7 +173,7 @@ bool wxDisclosureTriangle::IsOpen() const
 bool wxDisclosureTriangle::OSXHandleClicked( double WXUNUSED(timestampsec) )
 {
     // Just emit button event for now
-    wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId);
+    wxCommandEvent event(wxEVT_BUTTON, m_windowId);
     event.SetEventObject(this);
     ProcessCommand(event);