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

How to add "Last used documents" to a WPF programms tray symbol (not icon) programatically?

I want to provide a list of "last used documents" to the bigger tray icon (not notification icons) of my application. As shortcut to the user, similar to like Keypass or Microsoft Word do it when right clicking on it's tray icon if the application…
Patrick Artner
  • 50,409
  • 9
  • 43
  • 69
2
votes
1 answer

Aero border and other controls in a TrayIcon menu

I'm writing a system tray app for Windows (with much info gleaned from this thread). I have the ContextMenu working - you can right click and execute functions that way. I want to have a modern, rich interface pop up on a left click, however, much…
tsvallender
  • 2,615
  • 6
  • 32
  • 42
2
votes
1 answer

Tray icon not showing for application when running as Remote App

I've created an application in C# that displays an icon in the tray, this works fine running on my local desktop. When I run the application as a "RemoteApp" the tray icon never appears. Is there something I've done wrong, or is this even possible?
eptgrant
  • 119
  • 7
2
votes
1 answer

Display numbers on a tray icon with SWT

I would like to show some numbers on my tray icon indicating a number of events that happened to the user like what is done in this facebook notifications icons: Do you think that it is possible ? Thank you
Marouane Gazanayi
  • 5,063
  • 6
  • 39
  • 58
2
votes
1 answer

threading for tray icon application

I want to have a tray icon to inform me whether or not my COM port is plugged-in. It should change every 5 seconds according to the state of the COM port. I also want the ability to kill the program using the contextual menu of the tray icon. I…
2
votes
1 answer

Java app Tray Icon not displaying properly on CentOS

I've written a Java app that can be used on both Windows and Linux. The app uses a TrayIcon. On Windows, this works perfectly, but on Linux (CentOS) the TrayIcon has 2 problems: 1) I've lost the transparency in my png image) and 2) the image looks…
mojoker
  • 308
  • 2
  • 14
2
votes
2 answers

Java TrayIcon: addMouseListener -> distinguish between single click and double click?

I would like to show an alert when clicking on the TrayIcon, and show the main window when double clicking on it. I am having issues capturing the double click event: every time I double click, two single click events are fired. I am using the…
Tim
  • 3,910
  • 8
  • 45
  • 80
2
votes
1 answer

How to set system-tray icon using only AWT

I've created a calculator using AWT Frames. I wanna know how to add a tray-icon to my Cal. I can only use AWT not Swing.
user271865
  • 25
  • 1
  • 11
2
votes
0 answers

TrayIcon set tray label in Linux Gnome

So, thanks to this post (SWT System Tray - Linux GTK Gnome Tray icons...), I should be able to set title (yes, the thread is misleading) of my application. But now, how do I get the tray itself to match my application name? Screenshot: I'm…
Kevin Thorne
  • 435
  • 5
  • 19
2
votes
0 answers

Java TrayIcon.displayMessage does not work after computer sleeps

I have a class that does the following, though with a more constructive message: class myClass extends Thread{ TrayIcon icon = new TrayIcon(SomeImage); public myClass(){ SystemTray tray = SystemTray.getSystemTray(); tray.add(icon); …
Grisungen
  • 333
  • 2
  • 7
2
votes
0 answers

How to set icon in caption of image in TrayIcon in Mac, Java

I have created a sample java application for using tray icon. trayIcon.displayMessage("Sun TrayIcon Demo", "This is an error message", TrayIcon.MessageType.ERROR); If I use the above then It uses error icon of the system…
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
2
votes
1 answer

Shell_NotifyIcon from RGB data

I have an icon in memory (RGB or whatever format I want via PIL/Pillow) and I want to use it with win32gui.Shell_NotifyIcon which requires an HICON. How do I get my RGB pixels into an HICON? Or, even though that's wasteful, I wouldn't even mind…
totaam
  • 1,306
  • 14
  • 25
2
votes
1 answer

Attempting to show progress bar icons in taskbar with Java, but all I get is a single black line

I've attempted to create some progress bar images using the following code: public static void makeImage(int percent) { BufferedImage img = new BufferedImage(100, 30, BufferedImage.TYPE_INT_ARGB); Graphics g = img.getGraphics(); …
Ali
  • 261,656
  • 265
  • 575
  • 769
2
votes
0 answers

Trayicon transparency background + JavaFX + Linux? its possible?

Does anyone know if JavaFX already have support background transparency in trayicon in linux OS? I tried this solution in a long time and not found. thank you **I've tried with svg format and no success.
ari
  • 149
  • 7
2
votes
2 answers

Change the icon name in the notification area in windows in Java

I created a program that supports system tray notifications. I set an icon with a tooltip and balloon message for my system tray. When i start the program the icon appears in the Notification Area Icons in Windows and the Default Name next to it is…
I.Ruskov
  • 73
  • 1
  • 6