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
63
votes
9 answers

What's the proper way to minimize to tray a C# WinForms app?

What is the proper way to minimize a WinForms app to the system tray? Note: minimize to system tray; on the right side of the taskbar by the clock. I'm not asking about minimizing to taskbar, which is what happens when you hit the "minus" button on…
Judah Gabriel Himango
  • 58,906
  • 38
  • 158
  • 212
29
votes
2 answers

How do you create a Tray icon with FireMonkey?

With the new FireMonkey cross-platform tool, how does one create a tray icon? With Delphi it used to be TTrayIcon. The documentation has nothing, and no other questions seem to answer this. Would appreciate any idea (I can always resort to…
Etamar Laron
  • 1,172
  • 10
  • 23
26
votes
3 answers

GTK+ 3 StatusIcon replacement

I want my GTK application to have a status icon in the system tray, I have got this working quite nicely using a StatusIcon, however this has been deprecated: gtk_status_icon_new has been deprecated since version 3.14 and should not be used in…
Tomha
  • 847
  • 2
  • 8
  • 16
19
votes
2 answers

Tray Icon animation

I know how to place a icon in the Windows notification area (system tray). What is the best method to have an icon animate? Can you use an animated gif, or do you have to rely on a timer? I'm using C# and WPF, but WinForms accepted too.
Click Ok
  • 8,700
  • 18
  • 70
  • 106
19
votes
4 answers

System Tray icon looks distorted

I'm trying to have an icon be added and displayed to the system tray using Java. However the icon is always either too small, or its cut off in areas. Its the second one from left in case you couldn't tell. What am I doing wrong here? How can I get…
Ali
  • 261,656
  • 265
  • 575
  • 769
17
votes
5 answers

Set tray icon to always show

How I can I set a NotifyIcon to be always visible in the right tray: http://screensnapr.com/v/qKWHe2.png because it shifts it over into the inactive icon window: http://screensnapr.com/v/jjtuK0.png The issue is that the tray icon has a context menu…
Drake
  • 3,851
  • 8
  • 39
  • 48
15
votes
5 answers

Creating tray icon using JavaFX

I want to write a tray icon via JavaFx, but I only find that can write by awt. Is there any way that can write it use JavaFx? It will look like these tray icons from Windows 10:
sappy
  • 770
  • 2
  • 6
  • 16
15
votes
1 answer

How to add ContextMenu to the system tray icon programmatically?

I want to programmatically add a context menu to my tray icon, so that when I right-click on the tray icon, it should show me the menu.How should I write the right-click event handler for my tray icon? I have tried the below: private void…
user2622971
  • 685
  • 3
  • 10
  • 20
15
votes
5 answers

Adding JPopupMenu to the TrayIcon

I want to add JPopupMenu to the task bar as a TrayIcon (i.e systemTray.add(trayIcon)) but I haven't found a way to do so.From the docs the constructor of TrayIcon looks like : public TrayIcon(Image image, String tooltip, …
saplingPro
  • 20,769
  • 53
  • 137
  • 195
14
votes
5 answers

Open popup(Menu) on task tray icon with left click using java

I am working on task tray Icon in java, I like to open a popup Menu using left click same popup Menu as I open on right click, and please help me with a quick response. Thanks in advance... here is the code working for right click need to show same…
NoNaMe
  • 6,020
  • 30
  • 82
  • 110
13
votes
2 answers

C# trayicon using wpf

I'm very new to programming C#, though I've scripted C# in unity3D for a few years. I'm currently trying to make a WPF tray icon, all the sources I've found on the net tell me to use System.Windows.Forms However .Forms is not available in…
Logan
  • 425
  • 1
  • 6
  • 16
12
votes
3 answers

iisexpresstray crashes when starting a site from visual studio

I am a VS2022 user. I updated it to version 17.5.0. Every time I try to view in the browser, the iisexpresstray (IIS Express) appears. But when you pass the mouse disappears. An error appears in Event Viewer. IIS Express is still working. I have…
12
votes
2 answers

Balloon hints on Delphi app tray icon keep popping up indefinitely

I have a Delphi 2006 app that can minimize to a tray icon, and displays various alert messages via a balloon hint over the tray icon. Under some circumstances - I don't know when - a previously displayed balloon hint keeps popping up and won't go…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
11
votes
3 answers

Minimize Chrome browser to tray?

How to minimize chrome browser to tray when I click on standard minimize button? I don't want Chrome to appear in task bar. Can we implement this by Chrome extension code?
10
votes
1 answer

How to hide the Java SWT program icon in the Dock when the application is in the tray

I know there are a lot of questions similar to mine, but I actually couldn't solve my problem even after reading all of them. I have a Java application that as soon as it starts it goes on tray. The problem is on Mac, because only there the icon is…
hurtledown
  • 673
  • 6
  • 18
1
2 3
19 20