The tag "tray" refers mostly to the GUI system notification area (called system tray) and rarely to the disc tray of an optical disc drive. Better use tag "trayicon" in case of a single tray icon and "notification-area" or "system-tray" in other cases about the system tray.
Questions tagged [tray]
175 questions
0
votes
2 answers
GtkStatusIcon label in Gnome3
How can affect on my app's status icon label in Gnome3? When i moving cursor on it shows me my app's executable name. How can I change it?

milo
- 1,220
- 3
- 17
- 33
0
votes
1 answer
How to: Add an icon for my WPF app in the notification area of my win 7 taskbar
I am working on a new WPF application.. and I need to show a notification area icon for it..
in windows forms I used to use notifyicon class but that is not supported in WPF...
so can you help me do that...
thank you...

Wisamx
- 117
- 1
- 17
0
votes
0 answers
How hide console C# app in tray second time?
I have this console app on C# code example. This code working fine. But I have a problem when I already get app from the tray. If I press MINIMIZE button the app does not put it in the tray again.
[DllImport("kernel32.dll")]
static extern IntPtr…

Андрей Ткаченко
- 3
- 2
0
votes
0 answers
Electron.js: ContextMenu of Tray outside of screen bounds
If I set a context menu to my tray icon with tray.setContextMenu(contextMenu) in Windows 11, the context menu will appear depending on the mouse psition, which could lead to the menu be outside the visible screen area (what is expected behaviour as…

Decase
- 1
- 1
0
votes
1 answer
C# Winforms Tray App: How to open/close or show/hide a form via tray event?
I have a tray app with an event handler. Whenever the event is triggered I want to inform the user via a corresponding popup image about a status. This image should appear for around 500 ms in the center of the screen for which I need a form with a…

tar
- 156
- 2
- 13
0
votes
0 answers
How to mix content with template images in Electron for macos
In https://www.electronjs.org/docs/latest/api/native-image#template-image it mentions that "Template images are not intended to be used as standalone images and are usually mixed with other content to create the desired final appearance." May I know…

Xue An Chuang
- 1
- 1
0
votes
0 answers
pyqt show window again when same process execute
what i want is
1.program run on system tray
2.user forgot program is already running
3.user run the program
4.showing up the program from tray already running, not new process
I already tried check that if same process running in first process, if…

이민우
- 19
- 2
0
votes
2 answers
Why I can't exit code in python?
I've tried use exit(), exit(0), sys.exit()(I've import sys) and quit(), but none of them can help me to exit code.
Here is my code when using exit():
from pystray import MenuItem as item
import pystray
from PIL import Image
while True:
def…

Danhui Xu
- 69
- 10
0
votes
1 answer
Why there is an error occurred by pystary in my programme (AttributeError: 'Icon' object has no attribute '_running')
An error occurred by pystary
My coding enviroment:windows10, python3.7
I want to make a tray application.But an error occurred.
Here is my code:
from pystray import MenuItem as item
import pystray
from PIL import Image
def show():
…

Danhui Xu
- 69
- 10
0
votes
1 answer
MS Windows- Main window no response when show menu on a tray notify icon(use a hidden window to process message)
I implemented an class, this class will show an tray icon. to handle the message from the icon, I have to create a hidden window.
Eevery thing works fine, except if You click outside of the icon, icon will not disappear. I have fixed this by…

Jeffrey Li
- 11
- 1
0
votes
1 answer
Why isn't the popup menu for my System Tray Icon responding to inputs?
I've been working on a background java program for a while and its almost ready to be released so I thought I should probably add a way to exit the program. I have this function:
private static void setupSysTray() {
if…

SteveOh
- 96
- 7
0
votes
0 answers
flutter local notification display only the last notification in tray
in my flutter project, I used FCM to push notifications and flutter_local_notification to display the received notifications
and I used the "data" payload to read the notification in my app.
and it works fine, but when I send more than one…

Tabarek Ghassan
- 716
- 15
- 28
0
votes
0 answers
Electron.NET Tray Icon - Click to show app instead of opening tray menu
C# Blazor with Electron.NET
Tray icon opens tray menu regardless of if it's right or left click.
How do I disable opening the menu when it's a normal (left) click and make it just show the app instead?
This is what I want to happen when the tray is…

BillyBoy
- 11
- 3
0
votes
1 answer
Electron tray disappearing even i putting the declaration of the tray in a global variable
I created a project with electron forge (setup with webpack, react and typescript), and the first thing i did was trying to add a tray in the app. But when the app initializes, after about 3 seconds, the tray disappears. I read some threads about…

Breno Macêdo
- 62
- 5
0
votes
1 answer
WPF C# Tray Icon Implementation Issue
I've faced the issue while trying to implement a tray icon. App was instantly closing every time I launched it. So first thing first I decided to create a new project to try it there, just in case if I messed something up in my app. But it…

Sweazy
- 1
- 3