在 Windows 系统托盘区域中整齐地显示多个工具提示/弹出窗口,类似于信使/防病毒通知
我正在开发一个程序,用于监视传入消息、传真、日历项目和警报等多种内容。
该程序通常位于系统托盘中。
我想要完成的是弹出多个工具提示或表单,每个通知对应一个。当要显示多条消息时,我希望能够将它们整齐地堆叠在一起。或者也许允许用户拥有几种不同的视图类型。
这里有人可以帮助我同时显示多个工具提示以及如何在屏幕上排列它们吗?
它也可以是一种形式或其他东西,关键是同时拥有多个事件并能够安排它们。
预先感谢, 麦克风
I am working on a program that monitors several things such as incomming messages, faxes, calendar items and alerts etc.
This program is normaly in the systray.
What i want to accomplish is to have multiple tooltips or forms pop up, one for every notification. When there are multiple messages to show, i want to be able to have them stack on top of each other neatly. Or maybe allow the user to have a couple of diffrent view types.
Can anyone here help me with showing multiple tooltips at once and how i can arrange them on the screen?
It can also be a form or something else, key is having multiple events at once and beeing able to arrange them.
Thansk in advance,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
下面的问题的答案可能会帮助您并给出方向,但您仍然需要自定义该代码来连接事件通知:
的弹出气球
创建像 Windows Messenger 或 AVG这样 有关球囊尖端及其问题的信息:
http://www.csharp411.com/notifyiconshowballoontip-issues/
MSDN 链接:
http://msdn.microsoft.com/en-us/library/ms160065。 ASPX
The answer in below SO question might help you and give the direction, but you would still need to customize that code to hook up for event notifications:
Creating a Popup Balloon like Windows Messenger or AVG
Additional information on ballon tip and its issues:
http://www.csharp411.com/notifyiconshowballoontip-issues/
MSDN link:
http://msdn.microsoft.com/en-us/library/ms160065.aspx
如果您想将它们放入一个对象中,您可能需要使用
Queue
或Stack
来保存它们。如果您需要将它们与线程ConcurrentQueue
或ConcurrentStack
一起使用。如果处理绑定,您需要将它们设为 Observable;如果您不关心排序和 FIFO/FILO,则使用ObservableCollection
。除此之外,您需要向我们提供有关您当前使用的产品的更多信息。
对于 WPF:http://www.hardcodet.net/projects/wpf-notifyicon
If you want to place them into an object, you'll probably want to use either
Queue<T>
orStack<T>
to hold them. If you need to use them with threadsConcurrentQueue<T>
orConcurrentStack<T>
. You'll want to make them Observable if dealing with bindings or useObservableCollection<T>
if you don't care about ordering and FIFO/FILO.Other than that you'll need to give us some more information about what you are currently using.
For WPF: http://www.hardcodet.net/projects/wpf-notifyicon
我会研究一种叫做 Growl 的东西:
您可能需要查看此页面以快速直观地了解其提供的功能:
I would look into something called Growl:
You might want to check this page for a quick visual overview of what it offers: