当我水平调整应用程序窗口大小时,为什么功能区 UI 消失了?

发布于 2024-11-01 07:49:34 字数 205 浏览 2 评论 0原文

我想在我的新项目中采用功能区 UI,我知道它可能更多地关注魔兽世界因素,而不是功能区的真正用途,即取代杂乱的工具栏。然而,当我开始调整窗口大小时,检查了一些与自动缩放相关的功能。将窗口缩小到最小宽度后,Ribbon UI 就消失了,我什至认为这在已经采用 Ribbon UI 的商业软件中可能不存在。 Paint似乎也遇到了同样的问题,不知道Office 2007或2010是否也遇到同样的问题。

I wanted to adopt the Ribbon UI for my new project, I know it might be focusing more on the WoW factor than the true use of a Ribbon which is to replace the toolbar clutter. However when I started playing around with resizing the window, checking out some of the features related to automated scaling. After shrinking the window than a minimum width in size the Ribbon UI just disappeared, I even thought this might not exist in commercial software that have already adopted the Ribbon UI. Paint seems to be suffering from the same problem, don't know if Office 2007 or 2010 are also plagued by the same problem.

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

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

发布评论

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

评论(2

月竹挽风 2024-11-08 07:49:34

Paint 和其他内置 Windows 应用程序使用 scenic Ribbon API微软现在将其包含在操作系统中供所有开发人员使用。据推测,这与您在项目中使用的相同。 Microsoft Office 使用由 Office 团队内部发明的专有功能区控件。这解释了行为上的差异。

是的,当你把窗口设置得太小而无法出现时,丝带会完全消失,这并不让我感到震惊。养眼的糖果就是这样。考虑到当没有足够的空间来显示其大量选项时,功能区就不是很有用或功能性。您可以看到它试图尽可能地缩小自己,但您就是无法在 5 磅的袋子中装入 10 磅的东西。完全隐藏它似乎和其他任何事情一样优雅。

Paint and the other built-in Windows applications use the scenic Ribbon API that Microsoft is now including in the OS for all developers to use. Presumably, this is the same one you're using for your project. Microsoft Office uses proprietary ribbon controls, invented by the Office team in-house. That explains the difference in behavior.

And yes, it hardly shocks me that the ribbon disappears entirely when you make the window too small for it to appear. Eye candy has that way about it. Consider that the ribbon isn't very useful or functional when there isn't enough space to display its massive buffet of options. You can see that it tries to shrink itself down as much as possible, but you just can't fit 10 pounds in a 5 pound bag. Hiding it altogether seems like just as elegant an option as anything else.

与君绝 2024-11-08 07:49:34

功能区指南,第 76 页,第 1026 行对此进行了详细说明 - 1027:

Microsoft® Office 用户界面设计指南
Microsoft Office 用户界面许可指南

定义功能区调整大小的组组合

13.. 当应用程序窗口宽度小于 300 像素或高度小于 250 像素时,整个功能区应该完全消失,以提供更多空间来显示文档。

因此,你关于为什么这样做的问题的答案是:它试图遵守规则。

您打算用覆盖整个窗户的丝带做什么?

This is spelled out in the Ribbon guidelines, page 76, lines 1026-1027:

Microsoft® Office User Interface Design Guidelines
Guidelines for Licensing the Microsoft Office User Interface

DEFINING GROUP COMBINATIONS FOR RIBBON RESIZING

13.. The entire Ribbon SHOULD completely disappear when the application window is less than 300 pixels wide or 250 pixels tall to provide more space for displaying the document.

Therefore the answer to your question about why it is doing that: it's trying to follow the rules.

What are you going to do with a ribbon that covers your entire window?

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