type
Post
status
Published
date
Jun 6, 2025
slug
summary
tags
Delphi
开发
category
技术分享
icon
password
Delphi开发是我的爱好,积累各类的开发经验,分享给朋友们
这里可以采用trayicon组件来实现,不用其他的第三方插件,因为官方的基本上就够用了。
- 将组件添加到界面;
- 为了让form运行时,就显示图片,我们需要设置这么几点:
icon选项选择自己的icon图片;
visible选择为true,表示运行时,右下角图标就显示

3.为了显示相应的消息,写如下代码即可,着重是写下面的函数,在按钮中调用函数即可,运行效果如下图:

完成的程序代码:
- Author:AD
- URL:https://www.adstudio.top/article/20a3ef87-2a2a-809f-9aea-c44f179acc0c
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!

.jpg?table=block&id=2193ef87-2a2a-80ef-a829-deabc4648397&t=2193ef87-2a2a-80ef-a829-deabc4648397)
(1)(1)(1).png?table=block&id=20f3ef87-2a2a-8093-8c75-f764c6a3eeeb&t=20f3ef87-2a2a-8093-8c75-f764c6a3eeeb)






