gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 10:55:31 27 4
gpt4 key购买 nike

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

我是通过双击、单击还是根本不恢复? 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com