Questions tagged [trayicon]

for questions about creating a tray icon for a software application, customising the behaviour of a tray icon, and adding application control or monitoring to a tray icon. For questions which relate the system notification area or system tray in general, use the notification-area or system-tray tag instead.

About

A tray icon is a small, graphical, interactive icon which remains available in the of a graphical desktop environment such as , , , and , to allow for convenient control, monitoring and/or termination of a running software application.

In desktop environments that support a notification area, the area is easily accessible and always visible, so that tray icons and important notices can be seen immediately. For example, in Windows XP and in KDE 4, the system notification area is nestled alongside the clock on the main taskbar. The system notification area is often known as the system tray, though this is a misnomer.

Tray icons may be permanently visible in the system notification area, or the desktop environment may allow automatic or manual hiding of tray icons which belong to applications which are currently inactive or rarely used.

289 questions
3
votes
1 answer

Java TrayIcon displayMessage 'may trigger ActionEvent' when does it/doesn't it?

When using TrayIcon.displayMessage to show a popup notification, the Java 6 documentation states that 'Clicking on the message may trigger an…
sam
  • 2,105
  • 2
  • 15
  • 18
3
votes
1 answer

Trayicon mouseEntered is not working

I have the following problem: my mouse entered method doesn't work and I don`t know why. The mouse pressed works perfectly, only the mouseEntered not. this is the mouse listenener: MouseListener mouseListener = new MouseListener() { …
Leander
  • 1,322
  • 4
  • 16
  • 31
3
votes
1 answer

System tray balloon message doesn't show up java

I want to make my system try icon to pop up a balloon message but it doesn't do that. This is the code. It should pop up if a simple if statement is fulfilled but nothing happens. The system tray icon is visible and when left clicking on it it shows…
Karuvägistaja
  • 293
  • 1
  • 8
  • 17
2
votes
3 answers

Make a Java application invisible to a user

I'm trying to figure out a way to make a Java application invisible to the user. Basically just trying to remove this <- Image How can this be done? public class TransparentWindow extends JFrame { public TransparentWindow() { …
Laszki
  • 113
  • 1
  • 3
  • 8
2
votes
3 answers

tray component for Delphi

Please advice some modern tray component for Delphi. The more functionality it has is better. It should support Delphi 2010. I just need to place an icon to tray and handle clicking on it and show popup when mouse cursor is over it.
kseen
  • 359
  • 8
  • 56
  • 104
2
votes
1 answer

Context menu does not open in first right click after tray notification is clicked in C# WPF?

I am working on a .NET WPF project using Visual Studio 2022 and I added tray icon functionality to my app. I also show toast notification whenever my app is minimized to windows tray. I also added a context menu to show up when user right clicks…
2
votes
1 answer

What native windows API or .NET classes uses the "Language Bar"?

Disclaimer: I'm a Java developer, this is an exercise for learning to code (what I think it's a) simple windows programs in .NET I was wondering the other day, what sort of calls (API or .NET classes) uses the windows "Language Bar" to change the…
ramayac
  • 5,173
  • 10
  • 50
  • 58
2
votes
1 answer

.NET 5 Tray Icon Usage in C# Windows Service

I searched for current best practices to handle windows system / tray icons in the .NET environment, but did not find any up-to-date information. Considering a usual .NET 5 project configuration:
ˈvɔlə
  • 9,204
  • 10
  • 63
  • 89
2
votes
2 answers

How to set the location of a notification custom form just above or below depending on the position of the system Tray Icon of the Taskbar?

Is there a way to recognize the position of system tray in c# winforms? I want to create a form that will place above or below the system tray depends on where the system tray is the position. I am planning to create a custom form instead of a…
myelxx
  • 314
  • 3
  • 11
2
votes
1 answer

CheckMenuItem problem in pygtk trayicon program

I have the following python (pygtk) program. When I move the mouse over the menu displayed, if clicked on the item in the tray the check boxes become checked and immediately unchecked again. I'm using Ubuntu 10.10 or 11.04. #!/usr/bin/python import…
7asd23hasd
  • 293
  • 1
  • 5
2
votes
2 answers

Large items in the notification area (AKA system tray)?

I would like to place some large items in the XP system tray. (the one next to the clock) By this i mean items that take up more than the standard icon space. I know it can be done because I have seen several weather and time applications with this…
Simon
  • 33,714
  • 21
  • 133
  • 202
2
votes
3 answers

How do I position a notification (tray) icon context menu on Windows XP?

I'm using C++ and Win32. I want my context menu and settings dialog to show up near the tray icon. I think I need the icon's coordinates to do that. Shell_NotifyIconGetRect wasn't available until Windows 7. WM_CONTEXTMENU is available starting in…
Ian Olsen
  • 153
  • 7
2
votes
0 answers

Notification Area Protocol does not work in GNOME or KDE (Ubuntu 10.10 attempted)

I cannot for the life of me get the freedesktop.xorg "system tray" protocol specification to work with GNOME or KDE, even though I think they both support it. Unfortunately, I have had the same frustrating failure trying to post this issue to the…
evolve
  • 21
  • 1
2
votes
2 answers

Java TrayIcon.displayMessage() and line-breaks

I'm writing a Java app with a SystemTray icon, and I'd like to put line-breaks into the TrayIcon's "display message", but the normal html trick doesn't seem to work (like it does inside JLabels). In the example below, the trayIcon variable below is…
laher
  • 8,860
  • 3
  • 29
  • 39
2
votes
1 answer

tray icon doesn't close immediately on app.quit in electron

I am using electron tray in my application but when I quit the app ,the tray doesn't close immediately.Instead on hover, it closes immediately .Is there any solution that I can use to avoid this?
Kshama Jain
  • 111
  • 1
  • 8