]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
use wxFILE_SEP_PATH instead of ':' separator for wxMac
[wxWidgets.git] / src / os2 / textctrl.cpp
index 8fe19038cf05699b011c17dcb61240e65ade45cb..7aabef5045def4fe1b54f7cb2a98daa897a93d0d 100644 (file)
@@ -171,7 +171,7 @@ bool wxTextCtrl::Create(
     }
     else
     {
-        lSstyle |= ES_LEFT;
+        lSstyle |= ES_LEFT | ES_AUTOSCROLL | ES_MARGIN;
 
         if (m_windowStyle & wxHSCROLL)
             lSstyle |=  ES_AUTOSCROLL;
@@ -1130,7 +1130,7 @@ wxSize wxTextCtrl::DoGetBestSize() const
     wxGetCharSize(GetHWND(), &nCx, &nCy, (wxFont*)&GetFont());
 
     int                             wText = DEFAULT_ITEM_WIDTH;
-    int                             hText = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy);
+    int                             hText = (EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy) * .8);
 
     if (m_windowStyle & wxTE_MULTILINE)
     {