문제

I have some NSButtons of style Round Textured inserted into an NSToolbar.

I have created some custom images for the buttons and would like to make them vertically bigger, however the height field for the button is greyed out.

Anyone got any ideas why, and if there is a way around it?

Thanks

Gareth

도움이 되었습니까?

해결책

From NSButtonCell Class Reference

NSTexturedRoundedBezelStyle The height of this button is fixed.

enter image description here

You can use NSTexturedSquareBezelStyle Bezel Styles

enter image description here

다른 팁

You have to uncheck Bordered in the latest version of XCode

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top