#pragma implementation "button.h"
#endif
+#include "wx/defs.h"
+
#include "wx/button.h"
#include "wx/panel.h"
IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
#endif
-#include <wx/mac/uma.h>
+#include "wx/mac/uma.h"
// Button
wxPanel *panel = wxDynamicCast(parent, wxPanel);
if ( panel )
{
- btnOldDefault = panel->GetDefaultItem();
+ btnOldDefault = wxDynamicCast(panel->GetDefaultItem(),
+ wxButton);
panel->SetDefaultItem(this);
}
-#ifdef __UNIX__
+#ifdef __DARWIN__
Boolean inData;
if ( btnOldDefault && btnOldDefault->m_macControl )
{