Make info bar buttons smaller.
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
This commit is contained in:
parent
cc2608047b
commit
bccb042c2a
@ -302,8 +302,14 @@ void wxInfoBarGeneric::AddButton(wxWindowID btnid, const wxString& label)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user