NSButton - 在禁用模式下设置文本颜色 [英] NSButton - set text color in disabled mode
本文介绍了NSButton - 在禁用模式下设置文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于某些原因,当我的按钮被禁用时,文本颜色变为白色。
For some reason, when my button is disabled, the text color turns white. I want it to stay black - how can i do that?
推荐答案
您可以设置文字,图片,颜色,字体等不同状态的按钮:正常,突出显示,禁用等。
You can set text, image, colors, fonts, etc. for different status of a button: normal, highlighted, disabled, etc.
你可以在Interface Builder中通过改变状态下拉列表。
You can do that in Interface Builder by changing the state with the dropdown list.
这篇关于NSButton - 在禁用模式下设置文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文