Recent

Author Topic: Easy tray application  (Read 2745 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 742
Easy tray application
« on: October 16, 2021, 05:03:44 pm »
I've been playing with tray application on W10, and decided to make a component to make it easier.

It runs on W10 but the source is included.

Install the component (misc tab) drop it on a form and away you go.
Windows 10
Laz 2.0.10
FPC 3.2.0

pcurtis

  • Hero Member
  • *****
  • Posts: 742
Re: Easy tray application
« Reply #1 on: October 16, 2021, 06:18:19 pm »
Now with notifications

MyTrayApp1.ShowMessageN(itInfo, 'aaa', 'bbb');
« Last Edit: October 17, 2021, 06:24:21 am by pcurtis »
Windows 10
Laz 2.0.10
FPC 3.2.0

Handoko

  • Hero Member
  • *****
  • Posts: 4379
  • My goal: build my own game engine using Lazarus
Re: Easy tray application
« Reply #2 on: October 16, 2021, 09:40:47 pm »
Thank you for sharing.
I don't use Windows, but I bookmarked it. I'm sure I will use it someday.

dbannon

  • Hero Member
  • *****
  • Posts: 1674
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Easy tray application
« Reply #3 on: October 17, 2021, 01:59:58 am »
Thanks for that.
How about a few words about why we would use your new component instead of the standard one supplied with Lazarus ?  It might be worthwhile mentioning your package on the Lazarus Tray Icon wiki page.

As a linux user, and author of an app that is heavily dependent on the TrayIcon, it annoy me no end that the Lazarus trayicon is becoming a real problem on Linux (thanks to Gnome and Wayland) but works flawlessly on Windows and Mac ??

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

 

TinyPortal © 2005-2018