// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "button.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
if( best != actual )
SetSize( best );
#endif
+ InvalidateBestSize();
}
return best;
}
+wxSize wxButton::GetMinSize() const
+{
+ if( wxMotifLargeButtons() )
+ return OldGetMinSize();
+
+ return DoGetBestSize();
+}
+
+wxSize wxButton::OldGetMinSize() const
+{
+ return OldGetBestSize();
+}
+
wxSize wxButton::OldGetBestSize() const
{
Dimension xmargin, ymargin, highlight, shadow, defThickness;
int margin = highlight * 2 +
( defThickness ? ( ( shadow + defThickness ) * 4 ) : ( shadow * 2 ) );
+
wxSize best( x + xmargin * 2 + margin,
y + ymargin * 2 + margin );