
我正在尝试一个单选按钮,文本可以很长并且有多行.我认为让它工作的一种方法是拥有NSRadiobutton类型的NSbutton,但不能让多行文本工作.
也许我最好的选择是有一个NSbutton后跟一个NSTextVIEw,其上有mouseDown委托函数触发NSbutton状态?
解决方法 我不相信你能.您必须继承NSButtonCell以添加对此的支持. 也就是说,在按钮上放置多行文本通常是个坏主意. A button label should concisely represent the action performed:
The label on a push button should be a verb or verb phrase that describes the action it performs—Save,Close,Print,Delete,Change Password,and so on. If a push button acts on a single setting,label the button as specifically as possible; “Choose Picture…,” for example,is more helpful than “Choose…” Because buttons initiate an immediate action,it shouldn’t be necessary to use “Now” (Scan Now,for example) in the label.
你想做什么?
总结以上是内存溢出为你收集整理的objective-c – 包装NSButton标题全部内容,希望文章能够帮你解决objective-c – 包装NSButton标题所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)