Mercurial > dwindows
changeset 1533:7bc189ef0cd0
Add code to determine the size of the calendar control on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 09 Jan 2012 15:18:04 +0000 |
parents | 6c55d68fd08a |
children | ad8181f70f31 |
files | mac/dw.m |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sat Jan 07 22:59:39 2012 +0000 +++ b/mac/dw.m Mon Jan 09 15:18:04 2012 +0000 @@ -3513,6 +3513,20 @@ thisheight = (int)size.height; } } + /* Handle calendar */ + else if([ object isMemberOfClass:[DWCalendar class] ]) + { + NSCell *cell = [object cell]; + + if(cell) + { + NSSize size = [cell cellSize]; + + thiswidth = size.width; + thisheight = size.height; + } + } + /* Any other control type */ else if([ object isKindOfClass:[ NSControl class ] ]) nsstr = [object stringValue];