如何绘制自己的NSTabView选项卡? [英] How to draw your own NSTabView tabs?

查看:173
本文介绍了如何绘制自己的NSTabView选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为 NSTabViewItem 绘制自己的标签。



我应该如何做?

https://github.com / aaroncrespo / WILLTabView / 。


I want to draw my own tabs for NSTabViewItems. My Tabs should look different and start in the top left corner and not centered.

How can I do this?

解决方案

it is possible to set the NSTabView's style to Tabless and then control it with a NSSegmentedControl that subclasses NSSegmentedCell to override style and behavior. For an idea how to do this, check out this project that emulates Xcode 4 style tabs: https://github.com/aaroncrespo/WILLTabView/.

这篇关于如何绘制自己的NSTabView选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆