comparison mac/dw.m @ 1457:c22477fe7347

Split out scrollbars from the rest of the ranged widgets on Mac... the others require extra size.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Dec 2011 22:22:49 +0000
parents 4b516ef23b62
children cd3d7e341467
comparison
equal deleted inserted replaced
1456:6bf5dc7da45d 1457:c22477fe7347
3445 /* Spinbuttons don't need to be as wide */ 3445 /* Spinbuttons don't need to be as wide */
3446 if([object isMemberOfClass:[ DWComboBox class]]) 3446 if([object isMemberOfClass:[ DWComboBox class]])
3447 extraheight = 4; 3447 extraheight = 4;
3448 } 3448 }
3449 /* Handle the ranged widgets */ 3449 /* Handle the ranged widgets */
3450 else if([ object isMemberOfClass:[DWScrollbar class] ] || 3450 else if([ object isMemberOfClass:[DWPercent class] ] ||
3451 [ object isMemberOfClass:[DWPercent class] ] ||
3452 [ object isMemberOfClass:[DWSlider class] ]) 3451 [ object isMemberOfClass:[DWSlider class] ])
3453 { 3452 {
3454 if([ object isMemberOfClass:[DWScrollbar class] ] && [object vertical]) 3453 thiswidth = 100;
3454 thisheight = 20;
3455 }
3456 /* Handle the ranged widgets */
3457 else if([ object isMemberOfClass:[DWScrollbar class] ])
3458 {
3459 if([object vertical])
3455 { 3460 {
3456 thiswidth = 14; 3461 thiswidth = 14;
3457 thisheight = 100; 3462 thisheight = 100;
3458 } 3463 }
3459 else 3464 else
3482 { 3487 {
3483 /* Handle status bar field */ 3488 /* Handle status bar field */
3484 if([object isBordered] || (DWOSMinor > 5 && [object isBezeled])) 3489 if([object isBordered] || (DWOSMinor > 5 && [object isBezeled]))
3485 extrawidth = 12; 3490 extrawidth = 12;
3486 else 3491 else
3487 extrawidth = 8; 3492 extrawidth = 10;
3488 } 3493 }
3489 3494
3490 /* If we have a string... 3495 /* If we have a string...
3491 * calculate the size with the current font. 3496 * calculate the size with the current font.
3492 */ 3497 */