+ m_clientWindowMargin = 10;
+
+ if (m_windowStyle & wxED_BUTTONS_RIGHT)
+ {
+ m_spacePerButton.x = wxButton::GetDefaultSize().x + 18;
+ m_spacePerButton.y = wxButton::GetDefaultSize().y + 8;
+ }
+ else
+ {
+ m_spacePerButton.x = wxButton::GetDefaultSize().x + 8;
+ m_spacePerButton.y = wxButton::GetDefaultSize().y + 18;
+ }
+
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
+ // Under Motif and GTK, the default button has a big frame around
+ // it and to avoid overlapping buttons we make the margin bigger.
+ // We could give other platforms a bigger margin as well, but this
+ // wouldn't be standard L&F.
+ m_spacePerButton.x += 10;
+ m_spacePerButton.y += 10;
+#endif
+