comparison mac/dw.m @ 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 de49c1f284b2
children c836c6c33d8e
comparison
equal deleted inserted replaced
1711:e2c5715d057d 1712:daa59fc8d6e5
4133 HWND API dw_entryfield_new(char *text, ULONG cid) 4133 HWND API dw_entryfield_new(char *text, ULONG cid)
4134 { 4134 {
4135 DWEntryField *entry = [[DWEntryField alloc] init]; 4135 DWEntryField *entry = [[DWEntryField alloc] init];
4136 [entry setStringValue:[ NSString stringWithUTF8String:text ]]; 4136 [entry setStringValue:[ NSString stringWithUTF8String:text ]];
4137 [entry setTag:cid]; 4137 [entry setTag:cid];
4138 [[entry cell] setScrollable:YES];
4139 [[entry cell] setWraps:NO];
4138 return entry; 4140 return entry;
4139 } 4141 }
4140 4142
4141 /* 4143 /*
4142 * Create a new Entryfield (password) window (widget) to be packed. 4144 * Create a new Entryfield (password) window (widget) to be packed.
4147 HWND API dw_entryfield_password_new(char *text, ULONG cid) 4149 HWND API dw_entryfield_password_new(char *text, ULONG cid)
4148 { 4150 {
4149 DWEntryFieldPassword *entry = [[DWEntryFieldPassword alloc] init]; 4151 DWEntryFieldPassword *entry = [[DWEntryFieldPassword alloc] init];
4150 [entry setStringValue:[ NSString stringWithUTF8String:text ]]; 4152 [entry setStringValue:[ NSString stringWithUTF8String:text ]];
4151 [entry setTag:cid]; 4153 [entry setTag:cid];
4154 [[entry cell] setScrollable:YES];
4155 [[entry cell] setWraps:NO];
4152 return entry; 4156 return entry;
4153 } 4157 }
4154 4158
4155 /* 4159 /*
4156 * Sets the entryfield character limit. 4160 * Sets the entryfield character limit.
5319 [textfield setTag:cid]; 5323 [textfield setTag:cid];
5320 if(DWDefaultFont) 5324 if(DWDefaultFont)
5321 { 5325 {
5322 [[textfield cell] setFont:DWDefaultFont]; 5326 [[textfield cell] setFont:DWDefaultFont];
5323 } 5327 }
5328 [[textfield cell] setWraps:NO];
5324 return textfield; 5329 return textfield;
5325 } 5330 }
5326 5331
5327 /* 5332 /*
5328 * Creates a rendering context widget (window) to be packed. 5333 * Creates a rendering context widget (window) to be packed.