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
10
votes
6 answers

How to close BalloonTip programmatically?

I have a Tray icon in my application. I am showing the balloon tip for 20 seconds, when I am loading something in the background. But, if the background load gets completed early, say in 10 seconds, I would like to hide the balloon tip. Currently…
Raj
  • 22,346
  • 14
  • 99
  • 142
10
votes
2 answers

Windows 8 Distorts my TrayIcon

Windows 8 appears to make tray icons be 20 x 20 pixels. It seems as though Java still thinks they should be 16 x 16 pixels. This is causing some bad distortion as Java scales things down, and then Windows scales things back up. The following example…
Lunchbox
  • 1,603
  • 11
  • 14
8
votes
4 answers

Refreshing system tray icons programmatically

I've an application which has a system tray icon. While uninstalling I'm killing the process if its running. So, as am not gracefully stopping the app, the icon remains in the system tray and will remove only if we hover the mouse on it. I wrote a…
Niranjan
  • 813
  • 2
  • 12
  • 33
8
votes
2 answers

Qt closing tray icon after application stops

I've a little problem with tray icon under windows. After my Qt application stopps (normal exit) the icon still remains in system bar. It disapears only when I move mouse cursor over it. I tried to hide it in the destructor of my window but it…
Sebastian Dusza
  • 2,470
  • 2
  • 30
  • 54
8
votes
1 answer

How to detect single clicks to System TrayIcon for Java App?

I'm working on a simple Java swing app, which adds an icon to the system tray when created. What I'm trying to do is to detect when this icon is single clicked by the user (whether through left click or right click), There's no popup menu, I just…
Ali
  • 261,656
  • 265
  • 575
  • 769
7
votes
2 answers

Blank icon in Windows 10 notification

My java application shows its icon on the system tray using code that looks more or less like this: Toolkit mainToolkit = Toolkit.getDefaultToolkit(); SystemTray mainTray = SystemTray.getSystemTray(); Image trayIconImage =…
PookyFan
  • 785
  • 1
  • 8
  • 23
7
votes
1 answer

Popup menu shown behind taskbar in FMX Delphi

So i've been working on this TrayIcon component based off of two different source codes. One for Windows, and one for Mac. Everything works fine except that when using an FMX TPopupMenu as the tray icon menu, it keeps popping up behind the taskbar…
vaid
  • 1,390
  • 12
  • 33
7
votes
2 answers

Nicer notifications in tray

Do you know any example with nicer notification in system tray? I don`t like standard baloon so maybe there are others free, third-party components I can use? Thanks
arek
  • 1,282
  • 4
  • 15
  • 25
6
votes
2 answers

Visual Studio - How to edit disabled (grayed out) icon in resources?

In Visual Studio, I've added a new icon in resources. However, for 32-bit icons, all of the tools are disabled (grayed out), and icon customization seems impossible: What needs to be done in order to use those tools to edit the icon (because, if…
T.Todua
  • 53,146
  • 19
  • 236
  • 237
6
votes
1 answer

How to make a tray icon for Windows using the winapi crate?

I am trying to use Rust's winapi crate to make a simple tray icon. I managed to do it before in C, but I can't make Rust happy. Later on I'll include the C code to show what bits of the NOTIFYICONDATA part I want to use. Super basic goals: Make it…
user2403531
  • 688
  • 6
  • 15
6
votes
1 answer

The system tray is not supported on the current platform?

I'm trying to make a System Tray application on Ubuntu 18.04 using Java. This is the code that I'm executing: import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class App { static{ …
user3676224
  • 863
  • 2
  • 11
  • 25
6
votes
1 answer

PNG TrayIcon transparency on Windows

I'm trying to use a transparent PNG as the icon for my Java application. The image on the JFrame and task bar work great. However, when I use the image with a TrayIcon, I get a black matte background around the edge of the PNG. Has anybody else come…
6
votes
0 answers

Icon with transparency on Windows 10 notifications

I'm developing a Windows application (using Python & the PyQt wrapper around Qt for the GUI), and extending the support for system-tray notifications. Starting with Windows 10, specifying the "no icon" option (as opposed to information, warning or…
D Flo
  • 61
  • 2
6
votes
3 answers

Removing NotifyIcon from the notification area

Is it possible to remove NotifyIcon from the notification area (system tray) when an app terminates abruptly? if no, how can I remove it when the app runs for the next time?
DelPhi
  • 83
  • 1
  • 5
6
votes
1 answer

Blinking Tray Icon

I know how to place an icon in window's systray using java, But what the best method to perform systray icon Blinking? or if I can replace any icon time to time or at some event (while the application is running), Kindly share your experiences…
NoNaMe
  • 6,020
  • 30
  • 82
  • 110
1
2
3
19 20