using Large System font for Buttons needs more space

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-02-21 16:35:24 +00:00
parent 024e0f6981
commit 407f0db050
4 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ wxSize wxButton::DoGetBestSize() const
{
wxSize sz = GetDefaultSize() ;
int wBtn = m_label.Length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ;
int wBtn = m_label.Length() * 10 + 12 + 2 * kMacOSXHorizontalBorder ;
if (wBtn > sz.x) sz.x = wBtn;

View File

@@ -87,7 +87,7 @@ wxSize wxButton::DoGetBestSize() const
{
wxSize sz = GetDefaultSize() ;
int wBtn = m_label.Length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ;
int wBtn = m_label.Length() * 10 + 12 + 2 * kMacOSXHorizontalBorder ;
if (wBtn > sz.x) sz.x = wBtn;

View File

@@ -433,7 +433,7 @@ void wxControl::MacAdjustControlRect()
{
if ( IsKindOf( CLASSINFO( wxButton ) ) )
{
m_width = m_label.Length() * 8 + 12 ;
m_width = m_label.Length() * 10 + 12 ;
if ( m_width < 70 )
m_width = 70 ;
}

View File

@@ -433,7 +433,7 @@ void wxControl::MacAdjustControlRect()
{
if ( IsKindOf( CLASSINFO( wxButton ) ) )
{
m_width = m_label.Length() * 8 + 12 ;
m_width = m_label.Length() * 10 + 12 ;
if ( m_width < 70 )
m_width = 70 ;
}