#pragma implementation "button.h"
#endif
+#include "wx/defs.h"
+
#include "wx/button.h"
#include "wx/panel.h"
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 )
{