在 Windows 系统托盘区域中整齐地显示多个工具提示/弹出窗口,类似于信使/防病毒通知

发布于 2024-12-15 05:33:21 字数 251 浏览 1 评论 0原文

我正在开发一个程序,用于监视传入消息、传真、日历项目和警报等多种内容。

该程序通常位于系统托盘中。

我想要完成的是弹出多个工具提示或表单,每个通知对应一个。当要显示多条消息时,我希望能够将它们整齐地堆叠在一起。或者也许允许用户拥有几种不同的视图类型。

这里有人可以帮助我同时显示多个工具提示以及如何在屏幕上排列它们吗?

它也可以是一种形式或其他东西,关键是同时拥有多个事件并能够安排它们。

预先感谢, 麦克风

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

世界如花海般美丽 2024-12-22 05:33:21

下面的问题的答案可能会帮助您并给出方向,但您仍然需要自定义该代码来连接事件通知
的弹出气球

创建像 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

智商已欠费 2024-12-22 05:33:21

如果您想将它们放入一个对象中,您可能需要使用 QueueStack 来保存它们。如果您需要将它们与线程 ConcurrentQueueConcurrentStack 一起使用。如果处理绑定,您需要将它们设为 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> or Stack<T> to hold them. If you need to use them with threads ConcurrentQueue<T> or ConcurrentStack<T>. You'll want to make them Observable if dealing with bindings or use ObservableCollection<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

野心澎湃 2024-12-22 05:33:21

我会研究一种叫做 Growl 的东西:

您可能需要查看此页面以快速直观地了解其提供的功能:

I would look into something called Growl:

You might want to check this page for a quick visual overview of what it offers:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文