wxButton::GetDefaultSize() fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-08-04 22:07:01 +00:00
parent 88b0e1c83d
commit 8c3c31d4a5
4 changed files with 82 additions and 22 deletions

View File

@@ -119,6 +119,7 @@ long wxDialogBase::CreateTextMessage(const wxArrayString& lines,
wxSize wxDialogBase::GetStandardButtonSize(bool hasCancel)
{
#if 0
int wButton = 0;
GetTextExtent(_("OK"), &wButton, NULL);
@@ -145,6 +146,9 @@ wxSize wxDialogBase::GetStandardButtonSize(bool hasCancel)
int hButton = (wButton * 23) / 75;
return wxSize(wButton, hButton);
#else
return wxButton::GetDefaultSize();
#endif
}
void wxDialogBase::CreateStandardButtons(long wDialog,