]> git.saurik.com Git - wxWidgets.git/commitdiff
set SMALL_FONT for controls here because InheritAttributes() doesn't do it any longer
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Mar 2004 23:47:44 +0000 (23:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Mar 2004 23:47:44 +0000 (23:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/control.cpp

index 1dd3f453d139f04fcf6142992350144a615f7436..f390b9c38bcd051dade60380c0e7f6ff62f2ff5a 100644 (file)
@@ -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