From 1ce5e614ba056ed6dcd88fa204660d76334311d2 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 6 Jun 2004 17:37:49 +0000 Subject: [PATCH] Readded WS_VISIBLE flag. Fixed expansion of size limit for contained text. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@27668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/textctrl.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/os2/textctrl.cpp b/src/os2/textctrl.cpp index 6e9789794c..dea58fcccb 100644 --- a/src/os2/textctrl.cpp +++ b/src/os2/textctrl.cpp @@ -128,7 +128,7 @@ bool wxTextCtrl::Create( m_windowStyle = lStyle; m_bIsMLE = FALSE; - long lSstyle = WS_TABSTOP; + long lSstyle = WS_VISIBLE | WS_TABSTOP; // // Single and multiline edit fields are two different controls in PM @@ -1164,11 +1164,17 @@ void wxTextCtrl::AdjustSpaceLimit() } if (uLen >= uLimit) { - uLimit = uLen + 0x8000; // 32Kb - if (uLimit > 0xffff) + if (m_bIsMLE) { - uLimit = 0L; + uLimit = uLen + 0x8000; // 32Kb + if (uLimit > 0xffff) + { + uLimit = 0L; + } } + else + uLimit = 0x7fff; + if (m_bIsMLE) ::WinSendMsg(GetHwnd(), MLM_SETTEXTLIMIT, MPFROMLONG(uLimit), 0); else