comparison mac/dw.m @ 1071:991aa92a0642

Scale down images on bitmap buttons if they are too big on the Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 25 Jun 2011 02:34:05 +0000
parents efaa9ceeb253
children 53fc692279fc
comparison
equal deleted inserted replaced
1070:4293f5ba4330 1071:991aa92a0642
3380 [button setTarget:button]; 3380 [button setTarget:button];
3381 [button setAction:@selector(buttonClicked:)]; 3381 [button setAction:@selector(buttonClicked:)];
3382 [button setTag:cid]; 3382 [button setTag:cid];
3383 [button setButtonType:NSMomentaryPushInButton]; 3383 [button setButtonType:NSMomentaryPushInButton];
3384 [button setBezelStyle:NSThickerSquareBezelStyle]; 3384 [button setBezelStyle:NSThickerSquareBezelStyle];
3385 [[button cell] setImageScaling:NSImageScaleProportionallyDown];
3385 if(DWDefaultFont) 3386 if(DWDefaultFont)
3386 { 3387 {
3387 [[button cell] setFont:DWDefaultFont]; 3388 [[button cell] setFont:DWDefaultFont];
3388 } 3389 }
3389 return button; 3390 return button;