如何制作一个像 Mac OS X Dock 堆栈一样的窗口?

发布于 2024-09-08 01:03:27 字数 193 浏览 2 评论 0原文

我正在寻找创建一个看起来像 Dock 堆栈的窗口对象。 (灰色方块,不是比萨倾斜列表)。配有标题、透明度、导航按钮、带字幕的大图标以及底部的尖箭头位。

NSPanel“HUD”不太适合...我希望当用户在我的应用程序中单击时弹出该内容,其中图标指示操作,箭头位指向他们单击的位置。

帮助?

谢谢,

-S!

I'm looking to create a window object that looks just like the Dock's Stack. (The grey square one, not the leaning list of pisa). Complete with title, transparency, navigation buttons, large icons with subtitles, and pointy-arrow bit on the bottom.

The NSPanel "HUD" didn't really fit... I'd like the thing to pop-up when a user clicks in my app, with the icons indicating actions and the arrow-bit pointing to where they clicked.

help?

Thanks,

-S!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

请止步禁区 2024-09-15 01:03:27

弹出窗口的一个很好的起点是 MAAttachedWindow

至于文件、标签等,你可以查看 NSCollectionView。我认为您可以将其配置为透明,并在 NSCollectionViewItem 原型中设置所需的标签属性。在此原型中,您可以使用基本的无边框 NSImageView 和正确着色的 NSTextField 来完成它。

A good starting place for the popup window is MAAttachedWindow.

As for the files, labels, etc. you might look into NSCollectionView. I think you can configure it to be transparent, and set the desired label attributes in your NSCollectionViewItem prototype. In this prototype, you might accomplish it with a basic no-border NSImageView and a properly-colored NSTextField.

绝對不後悔。 2024-09-15 01:03:27

您可能希望将 BGHUD 用于您的 UI。看:
http://www.binarymethod.com/bghudappkit/

You might want to use BGHUD for your UI. See:
http://www.binarymethod.com/bghudappkit/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文