Mercurial > dwindows
changeset 1544:1fd3a9635c4d
Enable MLE line wrap by default on OS/2...
and attempt to add horizontal scrollbars when wrap is off.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 13 Jan 2012 06:02:44 +0000 |
parents | b86a04751ea0 |
children | 6edf3fce77f2 |
files | os2/dw.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Fri Jan 13 03:29:23 2012 +0000 +++ b/os2/dw.c Fri Jan 13 06:02:44 2012 +0000 @@ -5738,10 +5738,9 @@ HWND tmp = WinCreateWindow(HWND_OBJECT, WC_MLE, NULL, - WS_VISIBLE | + WS_VISIBLE | MLS_WORDWRAP | MLS_BORDER | MLS_IGNORETAB | - MLS_VSCROLL | - MLS_LIMITVSCROLL, + MLS_VSCROLL | MLS_LIMITVSCROLL, 0,0,2000,1000, NULLHANDLE, HWND_TOP, @@ -7665,6 +7664,7 @@ void API dw_mle_set_word_wrap(HWND handle, int state) { WinSendMsg(handle, MLM_SETWRAP, MPFROMLONG(state), 0); + WinSetWindowBits(handle, QWL_STYLE, state ? MLS_HSCROLL : 0, MLS_HSCROLL); } /*