Mercurial > dwindows
changeset 1712:daa59fc8d6e5
Disable wrapping on entryfields and static text on Mac.
Also enable scrolling on entryfields... I seem to remember not doing this
in the past for some reason but it seems to be working now. :)
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 07 May 2012 13:29:51 +0000 |
parents | e2c5715d057d |
children | c836c6c33d8e |
files | mac/dw.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sun May 06 00:02:02 2012 +0000 +++ b/mac/dw.m Mon May 07 13:29:51 2012 +0000 @@ -4135,6 +4135,8 @@ DWEntryField *entry = [[DWEntryField alloc] init]; [entry setStringValue:[ NSString stringWithUTF8String:text ]]; [entry setTag:cid]; + [[entry cell] setScrollable:YES]; + [[entry cell] setWraps:NO]; return entry; } @@ -4149,6 +4151,8 @@ DWEntryFieldPassword *entry = [[DWEntryFieldPassword alloc] init]; [entry setStringValue:[ NSString stringWithUTF8String:text ]]; [entry setTag:cid]; + [[entry cell] setScrollable:YES]; + [[entry cell] setWraps:NO]; return entry; } @@ -5321,6 +5325,7 @@ { [[textfield cell] setFont:DWDefaultFont]; } + [[textfield cell] setWraps:NO]; return textfield; }