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
1
vote
1 answer

Trayicon missing when restart Windows 7

When restart Windows, some tray icons were missing. Is there a command to redraw trayIcon or prevent they missing ?
1
vote
2 answers

AutoHotKey - Receive content from an array using a variables' integer as the index

I want to receive a string from an array using a variables' integer as the array index. But it is not working. Attempt 1 ; Suspended | 0 = No, 1 = Yes global Suspended := 0 global SuspendedMsg := ["The script has been paused.","The script has…
Dean
  • 301
  • 1
  • 3
  • 13
1
vote
3 answers

Tray icon simply not showing in java

I've been trying all day to get my tray icon added, but it doesnt work. I have the icon file stored within the netbeans src/myproject/ I have tried a gazillion different paths, even direct ones to my files, but none seem to work. I'm pretty sure…
Woeler
  • 227
  • 4
  • 14
1
vote
0 answers

java tray how to implements mouse hover and leave event?

I'm trying to achieving an effect ,it's when your mouse is hover the tray,the tray will pop a window and when your mouse leave the tray,the pop window will disappear; The method is dose not work,like this: trayIcon.addMouseListener(new…
Translate
  • 51
  • 2
1
vote
1 answer

Java Swing TrayIcon balloon message - implement different actionlistener than main icon?

I have an TrayIcon which occasionally displays popup/balloon messages via displayMessage(). The TrayIcon itself has an ActionListener which works fine. As per the docs, on at least some platforms (eg Win 8), a click on the message bubble itself…
michael256
  • 71
  • 6
1
vote
1 answer

how to remove the tray icon after taskkill the application?

I use inno setup to setup my application. Before install, I will check the app is still running, and use taskkill command to kill the application force. But I find the tray icon will not disappear. How to terminate the application gentlely or make…
Nick Sun
  • 141
  • 3
  • 10
1
vote
2 answers

Java TrayIcon image to be animated

In Java documentation about TrayIcon's setImage method (http://docs.oracle.com/javase/7/docs/api/java/awt/TrayIcon.html#setImage(java.awt.Image) says: If the image represents an animated image, it will be animated automatically. But I can't get an…
FlamingMoe
  • 2,709
  • 5
  • 39
  • 64
1
vote
1 answer

Strange function call behavior with respect to .NET events

The code below will correctly display a message box when the notification icon is clicked. [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") $NotifyIcon = New-Object System.Windows.Forms.NotifyIcon $NotifyIcon.Icon =…
ComFreek
  • 29,044
  • 18
  • 104
  • 156
1
vote
2 answers

Can I differentiate between single and double clicks on the system tray icon?

I create my system tray icon using Shell_NotifyIcon and then trap its WM_LBUTTONDBLCLK notifications for when a user double-clicks the icon (I use it show a dialog window.) I also trap WM_RBUTTONDOWN notifications to show the context menu. Now I'm…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
1
vote
1 answer

Simulate user clicking in QSystemTrayIcon

Even through the activated slot is being executed, the menu is still not showing. I traced through manually clicking the tray icon and the simulated click, and its going through the same execution logic. Currently I have class MyClass(QObject): …
mingxiao
  • 1,712
  • 4
  • 21
  • 33
1
vote
1 answer

Message-only window not receiving messages from tray icon

I'm trying to write a simple reusable class to encapsulte the functionality for a basic tray icon. This is my first "project" with C++, and I'm having some problems: the message-only window created for the tray icon does not receive any message. The…
1
vote
0 answers

TrayIcon Custom Notification balloon java

I did search but couldn't find anything. Okay, so I wanted to have a custom "balloon" look for TrayIcon.displayMessage(args). I was wondering if this is possible using pre-defined functions/methods? Or would I just create a new undecorated frame…
user1009569
  • 477
  • 6
  • 22
1
vote
1 answer

PyQt4 WindowFlags don't close program

I'm making an application that when minimized go to tray icon, and the taskbar icon will be hidden. Searching I found that I can hide the icon changing the windowflag to "ToolTip". Then when I re-open the program I set again the "Window" flag. This…
GiuseppeP
  • 81
  • 9
1
vote
0 answers

StatusIcon with threaded loop: loop does not loop

I have created a simple status icon. Its purpose is to check the existence of files in a given time interval. The status icon shows, and the thread is started. However, the loop does not loop: it enters the loop, but on event.wait it halts, and…
Schoelje
  • 44
  • 4
1
vote
1 answer

multiple windows, single tray icon

My goal is to have a single icon for all the windows of my application. After some reading, my understanding is that creating a tray icon is achieved through Shell_NotifyIcon(). This function gets a NOTIFYICONDATA structure which contains a hWnd…
foudfou
  • 976
  • 6
  • 11