X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d37bb826ef4aeb1ecb59c37c5747a10e73340ce7..f0e5a44df103e880f57416f483e8f3f4b4bc9651:/src/os2/control.cpp diff --git a/src/os2/control.cpp b/src/os2/control.cpp index 1dd3f453d1..df264fae88 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -108,7 +108,7 @@ bool wxControl::OS2CreateControl( (void) OS2GetStyle(GetWindowStyle(), &dwExstyle); } // - // All controls should have these styles (wxWindows creates all controls + // All controls should have these styles (wxWidgets creates all controls // visible by default) // if (m_isShown ) @@ -161,9 +161,14 @@ bool wxControl::OS2CreateControl( SubclassWin(m_hWnd); // - // Controls use the same font and colours as their parent dialog by default + // Controls use the same colours as their parent dialog by default // InheritAttributes(); + // + // All OS/2 ctrls use the small font + // + SetFont(*wxSMALL_FONT); + SetXComp(0); SetYComp(0); SetSize( rPos.x @@ -279,10 +284,10 @@ void wxFindMaxSize( if (nRight > pRect->xRight) pRect->xRight = nRight; - if (nTop < pRect->yTop) + if (nTop > pRect->yTop) pRect->yTop = nTop; - if (nBottom > pRect->yBottom) + if (nBottom < pRect->yBottom) pRect->yBottom = nBottom; } // end of wxFindMaxSize