changeset 1788:9d499b162fe1

Discovered a breakage in OS/2 functionality when building the OS/2 installer for DWIB... so decided to fix it and implement the functionality on the other platforms, which I discovered was missing.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Aug 2012 00:05:47 +0000
parents 6762e29938a2
children a640714f9087
files dw.h mac/dw.m
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dw.h	Fri Aug 03 21:08:31 2012 +0000
+++ b/dw.h	Sat Aug 04 00:05:47 2012 +0000
@@ -332,7 +332,7 @@
 #define DW_DT_BOTTOM             0
 #define DW_DT_HALFTONE           0
 #define DW_DT_MNEMONIC           0
-#define DW_DT_WORDBREAK          0
+#define DW_DT_WORDBREAK          (1 << 11)
 #define DW_DT_ERASERECT          0
 
 #define DW_FCF_CLOSEBUTTON       (1 << 1) /* NSClosableWindowMask */
@@ -494,7 +494,7 @@
 #endif
 #endif
 
-#define DW_DT_LEFT               SS_LEFT
+#define DW_DT_LEFT               SS_LEFTNOWORDWRAP
 #define DW_DT_QUERYEXTENT        0
 #define DW_DT_UNDERSCORE         0
 #define DW_DT_STRIKEOUT          0
@@ -507,7 +507,7 @@
 #define DW_DT_BOTTOM             0
 #define DW_DT_HALFTONE           0
 #define DW_DT_MNEMONIC           0
-#define DW_DT_WORDBREAK          0
+#define DW_DT_WORDBREAK          SS_LEFT
 #define DW_DT_ERASERECT          0
 
 #define DW_FCF_CLOSEBUTTON       0
--- a/mac/dw.m	Fri Aug 03 21:08:31 2012 +0000
+++ b/mac/dw.m	Sat Aug 04 00:05:47 2012 +0000
@@ -8438,6 +8438,10 @@
         {
             [cell setVCenter:(style & DW_DT_VCENTER ? YES : NO)];
         }
+        if(mask & DW_DT_WORDBREAK && [cell isMemberOfClass:[DWTextFieldCell class]])
+        {
+            [cell setWraps:(style & DW_DT_WORDBREAK ? YES : NO)];
+        }
     }
     else if([object isMemberOfClass:[NSTextView class]])
     {