TONT 38303 为什么应该使用凹陷的用户区域?

原文链接:https://devblogs.microsoft.com/oldnewthing/20040729-00/?p=38303

The WS_EX_CLIENTEDGE extended window style allows you to create a window whose client area is “sunken”. When should you use this style?

扩展窗体样式 WS_EX_CLIENTEDGE 允许你创建一个用户区域(client area)具有『凹陷』效果的窗口。为什么要使用这种窗口风格呢?

The Guidelines for User Interface Developers and Designers says in the section on the Design of Visual Elements that the sunken border should be used “to define the work area within a window”.
Specifically what this means is that a sunken client area indicates that the window is a “container”. So, for example, the Explorer contents pane gets a sunken client area since a folder “contains” its elements. Users expect to be able to manipulate the items inside a container. By contrast, a dialog box is not a container, so it doesn’t get a sunken client area.

《面向开发者和设计师的用户界面参考》在“视觉元素设计”一节(译注:原文链接已失效,按照下文提及该设计原则为1995年时的事,可能指的是这本书PDF文件原始链接在此)中,将凹陷的边框描述为“用以在窗口中划定工作区”。确切来说,其含义是指凹陷的用户区域表明该窗口是一个『容器』。因此,以资源管理器为例,其内容面板即为一个凹陷的用户区域,正是由于文件夹『容纳』了其中的元素,用户会期望在容器中对项目进行操控。反之,对话框并非一个『容器』,故其外观不会表现为凹陷的用户区域。

At least those were the rules back in 1995. Perhaps the rules have changed since then. (Indeed I wouldn’t be surprised if they have.)

至少1995年的时候规则是这样的。在那以后,规则大概已经发生变化了。(如果确实发生了变化,我也不会感到惊讶就是。)

Comments

  1. 基于扁平化而诞生的各种低质设计已经完全把“视觉元素设计”这个概念给毁了,原本扁平化是没错,但是低入门的腹泻式产出让整个行业的品味下降到了粪坑底部。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

 剩余字数 ( Characters available )

Your comment will be available after auditing.
您的评论将在通过审核后显示。

Please DO NOT add any links in your comment, otherwise it would be identified as SPAM automatically and never be audited.
请不要在评论中插入任何链接,否则将被自动归类为垃圾评论,且永远不会被提交给博主进行复审。

*