开发者

How to apply the window-frame roundTextured bezel style to an NSButton that's not in the window frame?

If you can edit the title and make it shorter, good on ya. Which is to say, sorry for the title length :P

In the HIG:

http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/Controls/Controls.html

Scroll down to the section "Window Frame Controls". Buttons with NSTexturedRoundedBezelStyle draw differently when placed in an NSToolBar (darker gradient).

Putting HIG questions aside, I need the darker bezel for a button that is not in the window frame. It seems there 开发者_如何学运维is some flag which I am missing.

I can obviously just draw it myself, but wanted to check if there's just something totally obvious I am missing here?

Kind regards, Alec


As of Lion, the Round Textured button is translucent, which means that some of the background shows through it. That's why it looks different in the toolbar, because there's a darker background behind it.

There is no magic flag to change this behaviour, the only way to give it a darker appearance would be to place it on a darker background.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜