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

How can I find the correct size of tray bar icons?

How can I find the correct size of the icons displayed in the tray bar ? I have full-size icons as resources in my app and I can scale them at any size with LoadIconWithScaleDown. But I don't know what size should I use... Those icons are not 16 or…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
0
votes
0 answers

Toast notification does not disappear after clicking outside of it in .net WPF application

I am working on a .NET WPF project using Visual Studio 2022 and I added tray icon functionality to my app. I also show toast notification whenever my app is minimized to windows tray. Everything works fine except when I click outside border of toast…
0
votes
0 answers

Toast notification does not pop up when zoom records screen in .net WPF App

I am working on a .NET WPF project using Visual Studio 2022 and I added tray icon functionality to my app. I also show toast notification whenever my app is minimized to windows tray. Everything works fine except when i am on a zoom meeting and…
0
votes
1 answer

How to disappear ContextMenu when user click outside ContextMenu for Tray Icon in WPF .net

I am working on a .NET WPF project using Visual Studio 2022 and I added tray icon functionality to my app. Everything works fine except when tray icon is right clicked context menu opened but when user clicks outside ContextMenu it does not…
0
votes
1 answer

Tray Icon not showing up

I have added a tray icon to my program that should show the up and have buttons for toggling certain functionality. However, the tray icon is not showing up. I have checked that System.Windows.Forms is included, that the Application.Run() method is…
S. C.
  • 110
  • 1
  • 13
0
votes
0 answers

How to add tray to python script with looping in it

i'm trying to make some kind of api to get device info per x second to database, and willing to make convert the python to .exe, the problem is, when .exe run later it must closed from task manager, if there any way to make pystray or any tray…
0
votes
0 answers

How the list of application with tray icons is created

There is C# application with trayIcon. In the windows settings the mode "show icon and notification" is set. Application is restarted -> 3.1 The new instance icon is hiden. 3.2 The setup window contains 2 items of my app and the new has setup…
0
votes
1 answer

Unable to loop through golang dynamic channels

I want to loop through the menu's options. However, it stops at the first option, since the select without "default:" is blocking and it does not know more options will appear dynamically. Bellow is the broken code: package main import ( …
Evandro Jr
  • 123
  • 8
0
votes
0 answers

Click (right and left) does not work with wampserver's tray icon

When I want to show the menus for wamp, nothing happens... I already reinstalled wampserver, I also installed all the VC redistribuables and I checked if there are all installed with this tool (provided by wamp).
Esref
  • 45
  • 5
0
votes
1 answer

Handling NIN_POPUPOPEN, NIN_POPUPCLOSE message of system tray icon

I want to display a form when the cursor enters the icon, and it disappears shortly after the cursor leaves the icon, similar to the Process Hacker software. (It displays a form above the system tray that displays information about running…
yonni
  • 248
  • 2
  • 11
0
votes
1 answer

Java system trayicon mouselistener

Here is the code. I want to ask why is that mouseClicked for a trayicon works perfectly but mouseEntered won't work at all? mouseListener = new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if…
0
votes
1 answer

PyQt5 tray program closes after QDialog executing

from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QGridLayout, QWidget, QCheckBox, QSystemTrayIcon, \ QSpacerItem, QSizePolicy, QMenu, QAction, QStyle, qApp, QPushButton from PyQt5.QtCore import QSize from PyQt5 import…
Blink
  • 33
  • 6
0
votes
2 answers

How to handle outlook new message windows notification from Outlook Add-in

I have an Outloook Add-in that implements a kind of client-server communication with a background process. I have a custom window which is filled in with some information and then it is passed in to a background process (using…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

ContextMenu disappears/closes immediately after being opened

I'm trying to figure out why the System.Windows.Forms.ContextMenu in my Windows Forms application is closing immediately after I open it by right-clicking its tray icon on the taskbar. This doesn't occur immediately, but strangely starts happening…
ifconfig
  • 6,242
  • 7
  • 41
  • 65
0
votes
0 answers

How to make tray icon display in Ubuntu Budgie in Snapcraft PyQt5 app?

I've developed a Snapcraft application using PyQt5. It has a tray icon with a menu. The tray icon shows up great, just like it should, in every Linux flavor I've tried except for Ubuntu Budgie (which I'm running on a Mac in a Parallels…
gcdev
  • 1,406
  • 3
  • 17
  • 30