.net - 单击托盘图标的正确行为?

标签 .net windows system-tray systray

当应用程序将图标添加到系统托盘并最小化到它时,必须有一种方法可以恢复它。但是,在恢复窗口时,我不确定应用程序的“正确”行为是什么。

我是通过双击、单击还是根本不恢复? Windows 标准是什么?

最佳答案

Raymond Chen 在他的帖子“Those notification icons, with their clicks, double-clicks, right-clicks... what's up with that?”中写道:

Left single click: Display a simple interface item targetting the casual user. In most cases, this would be a context menu, but if you are something like the volume control, then a custom interface item (in this case, a slider control for controlling the volume) may be more appropriate.

Right single click: Display a context menu, but one which can contain options for more advanced users. In many cases, the menu will be identical to the left single click menu. (Important: See tomorrow's entry for additional discussion.)

As for double-clicks, you don't need a special rule because there is already a general principle for what double-clicks mean: The double-click action, generally speaking, is equivalent to viewing the context menu and choosing the default action.

关于.net - 单击托盘图标的正确行为?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1050477/

相关文章:

.net - 我如何从大型机程序员过渡到客户端服务器程序员?

.net - 性能关键的 GUI 应用程序(windows、linux)

javascript - 如何从 JavaScript 中右键单击

java - 如何更改菜单项上的文本颜色

user-interface - IIS Express 图标是什么意思?

.net - MethodImplOptions.Synchronized 的作用是什么?

.net - 将 .net 1.1 解决方案转换为 .net 2.0 的陷阱

windows - 您可以为 Windows CMD 命令设置键盘快捷键吗?

c# - 将文本文件的编码从 ANSI 更改为 UTF8,而不影响 C# 中文件的任何字符!

Java 应用程序 : Windows Service interacting with the system tray icon