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
4
votes
1 answer

Java TrayIcon message close button

The real question here might be if there's a better way to display desktop messages in Java. However... I'm using the Java trayicon to display messages to a desktop user. Because they want to keep certain messages up until the user clicks on them,…
Kevin Galligan
  • 16,159
  • 5
  • 42
  • 62
4
votes
2 answers

Autostart application and open it in taskbar with tray icon

I have an application in .net where I want it to always open without any manual interaction. In this application I have used NotifyIcon so it always start in Taskbar tray but the notification icon will only show if I manually open that .exe. so…
Vishal Suthar
  • 17,013
  • 3
  • 59
  • 105
4
votes
1 answer

Changing the LAF of a PopupMenu for a TrayIcon in Java

I have the following code to create a TrayIcon with a PopupMenu : public void addToTray() { try { try { //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); …
4
votes
1 answer

How can Java apps use tray icons in Ubuntu >= 13.04 (with AppInicator)

The system tray was deprecated in Ubuntu 11.04 in favour of the new AppIndicator. Since then, SWT applications couldn't show an icon unless the user used a whitelisting workaround included for backwards compatibility. Version 13.04 now removes that…
Miquel
  • 15,405
  • 8
  • 54
  • 87
4
votes
2 answers

How to check if NotifyIcon is hidden

I don't want to FORCE it to be visible, I just want it to check to see if it is hidden by Windows. Windows by default, hides the trayicons other than the system icons (Action Center, Battery, Network, Sound, Date and Time).
Phoenix Logan
  • 1,238
  • 3
  • 19
  • 31
3
votes
2 answers

java.awt.Trayicon is not displaying when java application is installed as windows 7 service

I have installed my Java application as windows service on Windows 7(32 bit) OS. My application is expected to show java.awt.TrayIcon on notification area when service starts. But it is no showing the Icon. The same application is working fine on…
imtiaz haider
  • 41
  • 1
  • 5
3
votes
2 answers

Wamp Error - aestan tray menu the confuguration file contains a syntax error on line 14:

I was just installed WAMPServer. After open my pc I have this issue. My…
aspectsiz
  • 33
  • 3
3
votes
2 answers

How to display my app's icon (programmatically) on the top right corner of the Mac OS X menu bar

I know Skype does it - they have a special icon register to there. And then when user click on the icon, a drop down menu will appear...
tom
  • 14,273
  • 19
  • 65
  • 124
3
votes
0 answers

I want create windows 10 style menu for notifyicon in Tray app

I am developing UWP app (open to choose any other kind of app) which will run in system tray. I want to customize context menu from conventional to windows 10 style. UWP currently does not provide NotifyIcon (System tray icon). But this project…
JD-V
  • 3,336
  • 1
  • 17
  • 20
3
votes
1 answer

C# clear tray icons of closed applications

I create my tray icon with System.Windows.Forms.NotifyIcon However, after the application closes. The icon continues to linger until I manually mouse over it. How can I prevent it from lingering or clear all the old ones when a new instance is run?
John
  • 5,942
  • 3
  • 42
  • 79
3
votes
1 answer

Why the famous workaround for closing a popup menu with Esc is not working with a private handle?

I made a component to use tray icons in my application and when the icon shows the popup menu, it can't be closed with Esc key. Then I found a workaround here, by David Heffernan. I integrate the code in my component and now the menu can be closed…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
3
votes
3 answers

How to change the tray icon with Java?

I need to change the tray icon, so that it would notify users about the number of unread messages. How to do this with Java?
Mediator
  • 14,951
  • 35
  • 113
  • 191
3
votes
1 answer

Windows UI Automation: click tray icon button

I'd like to find and click tray icon button (Windows 10). Helpers were took from here: https://blogs.msdn.microsoft.com/oldnewthing/20141013-00/?p=43863 All works fine, but when application clicks button with name "Dropbox" really it clicks another…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
3
votes
1 answer

PyQt application crashes after closing QMessagebox window

Here is the code of my simple tray application. It crashes with segfault when i call information window from context menu of application and then close it. I've tryed different variants to find a reason of segfault, this is my last…
PocketSam
  • 368
  • 4
  • 14
3
votes
0 answers

QSystemTrayIcon DoubleClick Activation results in two Trigger events

I'm developing an application, where I have a system tray icon. I'm trying to catch QSystemTrayIcon::DoubleClick in the system tray. For some reason I do not understand, I have been unable to catch. In its stead, I just get two…
Marcus
  • 1,685
  • 1
  • 18
  • 33