如何使用 FireMonkey 创建托盘图标?
使用新的 FireMonkey 跨平台工具,如何创建托盘图标?在 Delphi 中,它曾经是 TTrayIcon。
该文档没有任何内容,似乎没有其他问题可以回答这个问题。我将不胜感激任何想法(我总是可以诉诸每个平台的系统编程,但那只是如果真的没有这样的事情)。
With the new FireMonkey cross-platform tool, how does one create a tray icon? With Delphi it used to be TTrayIcon.
The documentation has nothing, and no other questions seem to answer this. Would appreciate any idea (I can always resort to system programming per platform, but that's just if there really is no such a thing).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Firemonkey 的 Apesuite 组件包有一个 TTrayIcon 组件,可以在 Windows 和 OS X 中运行。它不是免费的,但可以解决您的问题。
http://arcana.sivv.com/apesuite
The Apesuite component package for Firemonkey has a TTrayIcon component that works in both Windows and OS X. It's not free but it would solve your problem.
http://arcana.sivv.com/apesuite
正如 @RRUZ 提到的,您必须为 Windows 和 OSX 推出两个不同的版本。
就Windows版本而言,我在这个中文中偶然发现了一个实现(包括气球提示)博客文章,它(除了定义 DELPHIXE3UP 的缺少的包含)对我来说在 XE5/Win8 上工作得非常好。
我知道这是一个老问题,我也没有看过 OSX 版本,但 Windows 版本似乎是一个不错的开始。
As @RRUZ mentioned you'll have to roll two different versions for Windows and OSX.
As far as the Windows version is concerned I stumbled upon an implementation (including balloon hints) at this Chinese blog post, which (except for the missing include which defines DELPHIXE3UP) works perfectly fine for me with XE5/Win8.
I'm aware this is an old question and I didn't have a look at the OSX version yet either, but the Windows version seems like a decent start.