289 questions
0
votes
0
answers
45
views
How can I test trayicon interactions on the command line in Linux in a headless CI/CD environment
I currently have a CD/CI pipeline that tests my application by using Xvfb to start a framebuffer and xdotool to focus on the window and send a ctrl+q. My application is set to exit on ctrl+q:
#!/...
1
vote
1
answer
107
views
Changing TrayIcon based on theme in Avalonia 11.3
I have an Avalonia 11.3 desktop application with a tray icon. I've declared the tray icon in my App.axaml like this:
<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Icon="avares:...
0
votes
0
answers
69
views
Qt tray icon in Gnome
Why when I click on any item in Qt tray menu in Gnome the cursor becomes to busy shape even if it closes the app? How to fix this?
QMenu *menu = new QMenu();
QAction *closeAction = menu->addAction(&...
0
votes
0
answers
167
views
QSystemTray issues, kf.statusnotifieritem: KDE platform plugin is loaded but SNI unavailable
I'm trying to set up a tray icon for an app I'm developing in Qt with C++
I think it is pretty straightforward but I'm running into an issue, QtCreator throws:
kf.statusnotifieritem: KDE platform ...
4
votes
0
answers
145
views
Using a mutex to restore an application hidden in the system tray results in the window's minimize button becoming non-functional
In Rad Studio 12 C++ (Delphi/C++Builder), using VCL.
I'm facing an issue in my application where the minimize button becomes don't working after restoring the main window from the system tray by a ...
0
votes
1
answer
73
views
Why am I getting "Image palette is too big or absent" error with my TTrayIcon?
I'm developing a desktop application and I'm trying to use a TTrayIcon to display an icon in the system tray. However, I keep getting the error message:
Image palette is too big or absent
What could ...
0
votes
0
answers
81
views
AWT tray icon gets inresponsive when taskbar is recreated? (Windows 10)
In my java application I'm using a tray icon with a small menu. I experienced issues on Windows when waking up the laptop from hibernation and I found out that this is happening in scenarios where the ...
1
vote
0
answers
62
views
Java/JavaFX AWT (MenuItem) to JavaFX (event)
I have one suspended state of my application that I can't get around in any way.
I was able to successfully create an application that has absolutely all the functionality. I decided to practice a ...
1
vote
0
answers
92
views
python. subprocess problem with windows task bar
I am trying to make an app in tray that would switch power plans if user was inactive for 5 minutes. The main problem is that it shows in task bar for every 5 sec (so, when the loop starts). But the ...
0
votes
1
answer
272
views
Is there a way to configure "Settings -> Personalization -> Taskbar -> Turn system icons on or off" programmatically?
I'd like to configure windows settings using Win32 API.
Main purpose is to hide system tray icon from taskbar, such as Network Status icon, Volume icon and Audio Recording icon).
I tried using ...
0
votes
0
answers
58
views
Tray Icon Visibility Setting Resets After WPF App Update
I'm working on a .NET 6.0 WPF application with a tray icon (WinForms). After updating the app via ms-appinstaller, the tray icon's visibility setting in the Taskbar resets, moving it back to the ...
0
votes
0
answers
29
views
TrayIcon shows on one mac but not on another
I've knocked together a simple PyQT5 app that displays a trayicon.
On my mac it works:
However on my client's mac it doesn't display. (Alas, I do not have a screenshot).
I noticed my client has more ...
2
votes
1
answer
344
views
Context menu does not open in first right click after tray notification is clicked in C# WPF?
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. I also added a ...
12
votes
3
answers
2k
views
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 ...
0
votes
0
answers
295
views
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 ...
0
votes
1
answer
268
views
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 ...
0
votes
1
answer
541
views
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 ...
0
votes
1
answer
319
views
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.
...
0
votes
0
answers
342
views
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 (...
0
votes
1
answer
456
views
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 ...
0
votes
1
answer
112
views
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 ...
0
votes
1
answer
165
views
PyQt5 tray program closes after QDialog executing [duplicate]
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QGridLayout, QWidget, QCheckBox, QSystemTrayIcon, \
QSpacerItem, QSizePolicy, QMenu, QAction, QStyle, qApp, QPushButton
from PyQt5....
0
votes
2
answers
275
views
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 ...
1
vote
0
answers
281
views
tray icon pop-up menu right-click problem in windows server 2016
I have created a tray icon,
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
if (!hWnd)
{
return ...
0
votes
1
answer
544
views
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 ...
0
votes
0
answers
442
views
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 ...
0
votes
1
answer
284
views
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 ...
3
votes
2
answers
3k
views
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 wampmanager.ini
[BigMenu]
BigKey0=NC,0,0
[TextMenu]
TextKey0=NC,0,8,$000ff9f2,$00D77800,NC,NC
[PromptCustom]
PromptKey0=Default,...
3
votes
1
answer
7k
views
.NET 5 Tray Icon Usage in C# Windows Service
I searched for current best practices to handle windows system / tray icons in the .NET environment, but did not find any up-to-date information.
Considering a usual .NET 5 project configuration:
<...
2
votes
2
answers
1k
views
How to set the location of a notification custom form just above or below depending on the position of the system Tray Icon of the Taskbar?
Is there a way to recognize the position of system tray in c# winforms?
I want to create a form that will place above or below the system tray depends on where the system tray is the position.
I am ...
2
votes
1
answer
229
views
Unable to make the MenuItem in TrayIcon clickable
I made a simple java program to display a system tray with many menu items that appears on clicking it. All these menu items are meant to be clickable.
I included the code of tray icon functionalities ...
1
vote
0
answers
962
views
Electron-builder Tray Icon not showing up (Linux Mint 20, electronjs 11, electron-builder 22)
So i have this very simple electron.js test-project which works fine with npm start:
const { app, nativeImage } = require('electron');
const electron = require('electron');
const path = require('path')...
0
votes
1
answer
94
views
Why my program is not responding after I want to show it?
I've made a small program with PyQT5 and SysTrayIcon (infi.systray), and if the program is closed (person pressed "X"), there is an option to open it with TrayIcon.
If the button "Open&...
1
vote
0
answers
113
views
How to display desktop notifications?
Actually I'm using trayIcon with the displayMessage method but I'm having a problem which looking on the internet and here on stackoverflow seems to be unsolvable: the trasparent background in the ...
0
votes
1
answer
919
views
Trying to checkmark Context Menu Item on app Tray Icon in C++ (WinAPI)
I made a little app in C++ and I have two pairs of menus; one for the main window, and one for the tray icon I put there. I'm trying to put a checkmark next to a specific menu item in the tray icon ...
1
vote
1
answer
308
views
EOutOfResources exception when trying to restore tray icon
I'm getting an EOutOfResources exception 'Cannot remove shell notification icon' when trying to implement code to restore the tray icon after an Explorer crash/restart. My code is based on the old ...
1
vote
1
answer
683
views
How can i have the tray icon load for a Qt app when it is executed through task scheduler?
i have an python app with qt designer ui, i used pyinstaller to turn the .py to an exe, the tray icon works when manually executed, however once i try to run it using task scheduler the app runs but i ...
0
votes
0
answers
321
views
Windows taskbar icon is visible for a hidden window when loaded before the taskbar is visible
My program consists of one window, created as follows:
/* handle for window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for ...
9
votes
2
answers
3k
views
Visual Studio - How to edit disabled (grayed out) icon in resources?
In Visual Studio, I've added a new icon in resources. However, for 32-bit icons, all of the tools are disabled (grayed out), and icon customization seems impossible:
What needs to be done in order to ...
1
vote
0
answers
913
views
C++ How to change windows tray notification balloon icon? (information icon)
I'd like to change tray notify icon with user customized icon. I have already searched on the internet, but I can't find where a solution is. If my problem is duplicated, please send me a ...
0
votes
0
answers
428
views
How do I customize the picture in a windows 10 notification with java?
When making a Windows 10 notification how do I put a custom picture? I'm a fairly new coder and wanted to try making a notification program, what I'm trying to do is to make a program to notify me ...
4
votes
2
answers
5k
views
NodeJS - Electron tray icon disappearing after a minute
I have no idea what's going on, to be honest.
I've been keeping an eye to the icon and it just vanishes after a few minutes. No, it does not go to the arrow near the clock:
This is my icon showing up ...
1
vote
1
answer
2k
views
Create a dynamic Tray Icon with Python
I am trying to create a Tray icon with Python on Ubuntu Linux (this is not important, but it is for more details). I need my small system to show an Icon (Image) according to the result (Boolean) ...
4
votes
2
answers
4k
views
Electron TrayIcon not working properly on linux
I'm trying to make an Electron app that runs on system tray, once the tray icon is clicked, the app window will appears.
I tested it on linux, windows and mac, on windows and mac it works perfectly, ...
0
votes
0
answers
218
views
Keydown event doesn't work when the application is minimised to tray
I have a very simple app whose task is to launch another subprocess once a user hits the key. However it is a bit complicated as the app must be minimised in the System tray. All works fine unless the ...
0
votes
1
answer
203
views
Making a text field in a java pop up menu/tray icon
I have made a Java tray Icon. When the user clicks the icon, a pop up appears. I want to add a text field on the pop up. I have tried some code, it does not work for some reason.
public void ...
7
votes
1
answer
4k
views
How to make a tray icon for Windows using the winapi crate?
I am trying to use Rust's winapi crate to make a simple tray icon. I managed to do it before in C, but I can't make Rust happy. Later on I'll include the C code to show what bits of the NOTIFYICONDATA ...
0
votes
2
answers
300
views
Changing the enabled state of a TrayIcon menu item dynamically
I have code that successfully uses SystemTray, TrayIcon, PopupMenu, MenuItem. I'm trying to get the enabled state of the MenuItem to be accurate based on the state of something that's happening in ...
-2
votes
1
answer
72
views
Why app sometimes crashes when getting Icon from file?
I have functions to load and get Icon from files as follows:
std::map<wstring, HICON> m_map_icons;
void WindowSysTray::_loadIconFromFiles()
{
...
for (int i = 0; i < 3; ++i) {
...
2
votes
1
answer
4k
views
tray icon doesn't close immediately on app.quit in electron
I am using electron tray in my application but when I quit the app ,the tray doesn't close immediately.Instead on hover, it closes immediately .Is there any solution that I can use to avoid this?