我应该使用在Windows消息框警告图标或问号图标? [英] Should I use a warning icon or a question mark icon in a Windows message box?

查看:330
本文介绍了我应该使用在Windows消息框警告图标或问号图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多人都知道的类型 MessageBoxIcon 的问题。如果你不是特别熟悉的图标,它只是一个华而不实的问号。我很好奇,这个图标是否是在专业应用可以接受的。例如,让我们假设我有一个按钮,点击后,将清除整个窗体上的所有文本字段。当点击该按钮,我想提醒有关他有什么动作大约做用户。我可以写以下任一操作:

Many know of the MessageBoxIcon of type "question". If you are not particularly familiar with this icon, it is just a glorified question mark. I am curious as to whether or not this icon is acceptable in professional applications. For example, let's assume that I have a button which, when clicked, will clear all text fields on the entire form. When the button is clicked I would like to warn the user about what his action is about to do. I could write either of the following:

MessageBox.Show("Really clear all data?", "Clear confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

MessageBox.Show("Really clear all data?", "Clear confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

这将大家说的是更专业的两个?

Which would you all say is the more professional of the two?

推荐答案

我真的不认为这是专业的问题,但它肯定违背了微软的指导方针。

I don't really think it's an issue of "professionalism", but it definitely contradicts Microsoft's guidelines.

MB_ICONQUESTION 文档 >标记有这样一段话(和相同的<一的问题的成员href="http://msdn.microsoft.com/en-us/library/system.windows.forms.messageboxicon.aspx"><$c$c>MessageBoxIcon枚举):

The documentation for the MB_ICONQUESTION flag has this to say (and the same for the "Question" member of the MessageBoxIcon enum):

一个问号图标会出现在消息框中。问号消息图标不再推荐使用,因为它没有明确重新present消息的具体类型和因为一个消息作为问题的措辞可以适用于任何消息类型。此外,用户还可以迷惑消息符号问号的帮助信息。因此,不要在你的消息框使用这个问号消息符号。该系统将继续支持其列入只是为了向后兼容。

A question-mark icon appears in the message box. The question-mark message icon is no longer recommended because it does not clearly represent a specific type of message and because the phrasing of a message as a question could apply to any message type. In addition, users can confuse the message symbol question mark with Help information. Therefore, do not use this question mark message symbol in your message boxes. The system continues to support its inclusion only for backward compatibility.

Windows用户体验互动指南的标准图标部分说的很明确的是,问号图标应的只有的被用来表示帮助切入点:

And the Standard Icons section of the Windows User Experience Interaction Guidelines says very explicitly that the question mark icon should only be used to indicate a "Help entry point":

      
  • 使用的问号图标仅用于帮助入口点。有关详细信息,请参阅帮助切入点指导方针。
  •   
  • 不要使用问号图标提问。此外,使用问号图标仅用于帮助切入点。有没有需要请使用问号图标问题,反正,这是足以present主指令作为一个问题。
  •   
  • 不要经常与警告图标取代问号的图标。替换一个问号图标,只有当问题有显著的后果警告图标。否则,不使用的图标。
  •   

Question mark icons

  • Use the question mark icon only for Help entry points. For more information, see the Help entry point guidelines.
  • Don't use the question mark icon to ask questions. Again, use the question mark icon only for Help entry points. There is no need to ask questions using the question mark icon anyway—it's sufficient to present a main instruction as a question.
  • Don't routinely replace question mark icons with warning icons. Replace a question mark icon with a warning icon only if the question has significant consequences. Otherwise, use no icon.

我强烈建议您阅读整个文档;它提供了选择正确的图标很多有用的提示。但是,在这种特殊情况下,因为你要求用户确认,涉及到数据的潜在损失的操作时,一定要使用警告图标,这个方针是一致的:

I highly recommend that you read the entire document; it provides lots of helpful tips on choosing the correct icon. But in this particular case, since you're asking the user to confirm an operation that involves the potential loss of data, you should definitely use the warning icon, consistent with this guideline:

      
  • 有关问题的对话,用警告图标仅用于显著的后果问题。
  •   

这篇关于我应该使用在Windows消息框警告图标或问号图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆