Small optical changes for MSW

Buttons now get at least 80x23 if given
    a default size
  Small compile and distrib changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-08-23 15:23:29 +00:00
parent 1db46618f7
commit 3f3cec484d
5 changed files with 36 additions and 4 deletions

View File

@@ -97,6 +97,17 @@ bool wxButton::Create(wxWindow *parent,
SetSize(pos.x, pos.y, size.x, size.y);
// bad hack added by Robert to make buttons at least
// 80 pixels wide. There are probably better ways...
// TODO. FIXME.
wxSize nsize( GetSize() );
if ((nsize.x < 80) || (nsize.y < 23))
{
if ((size.x == -1) && (nsize.x < 80)) nsize.x = 80;
if ((size.y == -1) && (nsize.y < 23)) nsize.y = 23;
SetSize( nsize );
}
return TRUE;
}