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:
@@ -302,8 +302,14 @@ void wxInfoBarGeneric::AddButton(wxWindowID btnid, const wxString& label)
|
|||||||
m_button->Hide();
|
m_button->Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
sizer->Add(new wxButton(this, btnid, label),
|
wxButton * const button = new wxButton(this, btnid, label);
|
||||||
wxSizerFlags().Centre().DoubleBorder());
|
|
||||||
|
#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)
|
void wxInfoBarGeneric::RemoveButton(wxWindowID btnid)
|
||||||
|
Reference in New Issue
Block a user