Recent

Author Topic: Easy tray application  (Read 3681 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
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 20H2
Laz 2.2.0
FPC 3.2.2

pcurtis

  • Hero Member
  • *****
  • Posts: 951
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 20H2
Laz 2.2.0
FPC 3.2.2

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • 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: 2786
    • 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 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018