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
5
votes
2 answers

Changing System Tray Icon Image

I have built a Tray Application in .Net which works fine. However, users want to change Tray Icon image at runtime on certain conditions. To make it simple, let us say, something is not working - Tray Icon should show Red image; if everything is…
techspider
  • 3,370
  • 13
  • 37
  • 61
5
votes
1 answer

How to properly update tray notification icon?

Say, I created my icon: //'ghIcon' of type HICON ghIcon = LoadImage(m_hInstance, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, nCx, nCy, 0); and then set it to be displayed on system tray: NOTIFYICONDATA nid; memset(&nid, 0, sizeof(nid)); nid.cbSize =…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
5
votes
1 answer

How to get Java's TrayIcon message to fade out?

I have a Java application that reduce into the system tray when the red cross is pressed. Whenever this happen, I display a message to inform the user that the application is still running in the system tray. Here's the code for that : ... …
Padrus
  • 2,013
  • 1
  • 24
  • 37
5
votes
2 answers

Simple tray icon application using pygtk

I'm writing a webmail checker in python and I want it to just sit on the tray icon and warn me when there is a new email. Could anyone point me in the right direction as far as the gtk code? I already coded the bits necessary to check for new email…
André
  • 237
  • 1
  • 3
  • 8
5
votes
2 answers

System tray application Linux Qt/C++

I'm writing an application in C++ with Qt that utilizes the system tray. I have implemented the system tray using a QSystemTrayIcon class as shown in the examples, but it doesn't have the same behavior as other system tray icons that are present on…
Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
4
votes
1 answer

Delphi: JEDI TrayIcon hides all frames. Bug

I have a frame, two buttons and a JEDI TrayIcon (TJvTrayIcon, Version 3.40). Delphi XE. The first button: Frame11.Visible := true; Second: Frame11.Visible := false; When I try to minimize a window -> restore it from a system tray -> click the…
maxfax
  • 4,281
  • 12
  • 74
  • 120
4
votes
2 answers

Can you have a win32 program that consists solely of a tray (notification) icon?

I have a program that literally consists of a tray icon. No GUI is needed. However, when writing the win32 code, is it necessary to still initialize a hWnd object to be associated with the tray icon? For instance, it is normal to have a the…
Steve Barna
  • 1,378
  • 3
  • 13
  • 23
4
votes
1 answer

How Do I Create a 32-bit Tray Icon With Transparency (using GDI)?

I'm trying to create an icon that displays a piece of text in the system tray. (Obviously, it won't be longer than a couple of characters.) So far I've tried: #include #include #include static HICON…
user541686
  • 205,094
  • 128
  • 528
  • 886
4
votes
2 answers

NodeJS - Electron tray icon disappearing after a minute

I have no idea what's going on, to be honest. I've been keeping an eye to the icon and it just vanishes after a few minutes. No, it does not go to the arrow near the clock: This is my icon showing up (the explosion in red): I don't know how to…
Paula Fleck
  • 835
  • 11
  • 21
4
votes
1 answer

Qt: how to make decorated rich popup window instead the default QSystemTrayIcon popup window

I have simple notification application, and I'm using Qt 4.7.1 with C++ to write an application that sits in the system tray. Every time a message comes; I need it to pop-up a window. But, I need it to be rich (i.e., I want to add color and pictures…
user63898
  • 29,839
  • 85
  • 272
  • 514
4
votes
2 answers

Electron TrayIcon not working properly on linux

I'm trying to make an Electron app that runs on system tray, once the tray icon is clicked, the app window will appears. I tested it on linux, windows and mac, on windows and mac it works perfectly, when I click the tray icon, the app window appears…
4
votes
0 answers

How does GET_X_LPARAM() differ from GetCursorPos() when DPI scaling is done?

I have an application that creates a windows tray icon. When the user right clicks on it, a context menu is displayed. The application works fine until DPI scaling is done from control panel. For eg. when DPI scaling is set to 150% (Scaling value…
Sahil Singh
  • 3,352
  • 39
  • 62
4
votes
1 answer

Close TrayIcon Balloon Programmatically

Is it possible to close the TTrayIcon Balloon hint programmatically? The problem: I have a timer which checks for messages every minute. When it discovers a message (eg. ABC Service is stopped), it shows the balloon with the message: procedure…
Alisson Reinaldo Silva
  • 10,009
  • 5
  • 65
  • 83
4
votes
0 answers

Java application trayicon looks bad when OS is scaled because of high dpi screen

With Java, you can use TrayIcon and java.awt.SystemTray to make a trayicon. But this icon looks bad when you use for example Windows in combination with a 4K monitor and Windows is automatically scaling everything bigger. Java sets the trayiconsize…
XHotSniperX
  • 712
  • 7
  • 25
4
votes
1 answer

pass the window using a CommandParameter from a ContextMenu

The goal is to hide/show a window from the task tray using Hardcoded WPF NotifyTrayIcon in a MVVM solution. The problem is the CommandParameter always seems to be null, which then of course cause the code to crash. I've tried a number of different…
DukeNukem
  • 45
  • 4
1 2
3
19 20