简体   繁体   English

类似于Xcode的Navigator控件

[英]Xcode-like Navigator control

What type of control is this? 这是什么类型的控件? Some sort of Segment control but without borders? 某种细分市场控制但没有边界? It works like a menu in that you can mouse down and drag... it will highlight as you drag and pick the one you release on. 它的工作方式类似于菜单,您可以向下拖动鼠标...拖动并选择要释放的菜单时,它将突出显示。

Xcode导航器

How can I do something similar? 我该如何做类似的事情?

The big difference I need is to allow multiple selection which will show different sets of details in the area below it. 我需要的最大区别是允许多项选择,这些选择将在其下方的区域中显示不同的详细信息集。 I can do this with a series of NSButtons, but don't get the drag-over "menu" effect. 我可以使用一系列的NSButton来做到这一点,但不会获得“菜单”效果。

Ideas? 有想法吗?

In the past, I have come across two example of implementation of Xcode-like inspector views: 在过去,我遇到了两个类似Xcode的检查器视图的实现示例:

https://github.com/malcommac/DMTabBar https://github.com/malcommac/DMTabBar

https://github.com/smic/InspectorTabBar https://github.com/smic/InspectorTabBar

Some time has passed, so they seem to me more the style of Xcode 4, but they should be ready to adapt to the new appearance. 一段时间过去了,所以在我看来,它们看起来更像Xcode 4,但是它们应该准备好适应新的外观。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM