Mercurial > dwindows
comparison mac/dw.m @ 1418:461240f946d0
Status text fields needs extra space on the Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 02 Dec 2011 21:35:38 +0000 |
parents | 22ba64e357de |
children | 8827e9b14b40 |
comparison
equal
deleted
inserted
replaced
1417:f4fc4ea92511 | 1418:461240f946d0 |
---|---|
3566 extraheight = 4; | 3566 extraheight = 4; |
3567 } | 3567 } |
3568 else if([ object isKindOfClass:[ NSControl class ] ]) | 3568 else if([ object isKindOfClass:[ NSControl class ] ]) |
3569 nsstr = [object stringValue]; | 3569 nsstr = [object stringValue]; |
3570 | 3570 |
3571 /* Handle static text fields */ | |
3571 if([object isKindOfClass:[ NSTextField class ]] && ![object isEditable]) | 3572 if([object isKindOfClass:[ NSTextField class ]] && ![object isEditable]) |
3572 extrawidth = 8; | 3573 { |
3574 /* Handle status bar field */ | |
3575 if([object isBordered] || (DWOSMinor > 5 && [object isBezeled])) | |
3576 extrawidth = 12; | |
3577 else | |
3578 extrawidth = 8; | |
3579 } | |
3573 | 3580 |
3574 /* If we have a string... | 3581 /* If we have a string... |
3575 * calculate the size with the current font. | 3582 * calculate the size with the current font. |
3576 */ | 3583 */ |
3577 if(nsstr && [nsstr length]) | 3584 if(nsstr && [nsstr length]) |