This looks better under Mac OS X (and currently has no effect under the other
platforms).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62297
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_button->Hide();
}
- sizer->Add(new wxButton(this, btnid, label),
- wxSizerFlags().Centre().DoubleBorder());
+ wxButton * const button = new wxButton(this, btnid, label);
+
+#ifdef __WXMAC__
+ // smaller buttons look better in the (narrow) info bar under OS X
+ button->SetWindowVariant(wxWINDOW_VARIANT_SMALL);
+#endif // __WXMAC__
+
+ sizer->Add(button, wxSizerFlags().Centre().DoubleBorder());
}
void wxInfoBarGeneric::RemoveButton(wxWindowID btnid)