简体   繁体   English

Windows布局外观

[英]Windows Layout Look and Feel

I am looking for the Windows Look and Feel Design Guidelines ( but not the one for Windows Vista! ) that details the ideal gap between elements, etc. I found the document originally a few years back on MSDN but now I can't find it. 我正在寻找Windows外观和感觉设计指南( 但不是针对Windows Vista的那个 ),详细说明了元素之间的理想差距等。我几年前在MSDN上找到了该文档,但现在我找不到它了。

I've started a new job the same thing is occuring here as before: A program written and added to over the years by several different people with differing ideas about UI. 我已经开始了一项新工作,就像以前一样在这里发生的事情:多年来由几个不同的人对UI进行编写和添加的程序。 While I've got a chance on a Friday afternoon I'd thought I'd tidy up the layout 虽然我在星期五下午有机会,但我认为我会整理布局

Its new home is: 它的新家是:

eg: 例如:

Control sizing 控制尺寸

The following table lists the recommended sizes (width x height, or height if a single number) for common UI elements (for 9 pt. Segoe UI at 96 dpi). 下表列出了常见UI元素的推荐尺寸(宽度x高度或单个数字的高度)(9 pt.Segoe UI,96 dpi)。 The widths based on the longest item in English add 30 percent for localization (up to 200 percent for shorter text) for any text (but not numbers) that will be localized. 对于任何本地化的文本(但不是数字),基于英语中最长项目的宽度为本地化增加30%(对于较短文本最多为200%)。

Command Buttons 命令按钮

(source: microsoft.com ) (来源: microsoft.com

Dialog Units: 50 x 14 对话单位:50 x 14
Relative Pixels: 75 x 23 相对像素:75 x 23

Spacing 间距

The following table lists the recommended spacing between common UI elements (for 9 pt. Segoe UI at 96 dpi). 下表列出了常见UI元素之间的建议间距(对于9 pt.Segoe UI,96 dpi)。

Dialog box margins 对话框边距

(source: microsoft.com ) (来源: microsoft.com

Dialog Units: 7 on all sides 对话单位:各方面7
Relative Pixels: 11 on all sides 相对像素:各方面都是11

Text label beside a control 控件旁边的文本标签

(source: microsoft.com ) (来源: microsoft.com

Dialog Units: 3 down from the top of the control 对话单位:从控件顶部向下3
Relative Pixels: 5 down from the top of the control 相对像素:从控件顶部向下5


There's also the page that explains what Dialog Units are: Layout, Device Independent Layout : 还有一个页面解释了对话单元是什么: 布局,设备无关布局

在此输入图像描述

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

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