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

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" pressed (in TrayIcon"), then the program must show as it was…
user14023416
0
votes
1 answer

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 context menu, but I can't get this to work. if…
0
votes
0 answers

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 the windowclass */ WM_TASKBAR =…
Floris
  • 25
  • 6
0
votes
1 answer

Unchecking item in a context menu

I currently have a ContextMenu in C# WPF, displaying a MenuItem. This ContextMenu is then utilized by a TrayIcon. // menu initialization private static System.Windows.Controls.ContextMenu trayMenu = new System.Windows.Controls.ContextMenu(); //…
BSchlinker
  • 3,401
  • 11
  • 51
  • 82
0
votes
0 answers

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 when I use OBS's replay buffer to record a clip and…
Chrisb
  • 1
0
votes
0 answers

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 app is minimised to the tray icon. The…
0
votes
1 answer

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 actionPerformed(ActionEvent e) { …
s1eym_vrs
  • 1
  • 2
0
votes
1 answer

Minimize WPF XBAP To Tray : Can it be done?

I've seen a few implementations of tray-located apps now. Despite the urge to develop my own stuff, I think I'd like to give this one a go : http://www.codeproject.com/KB/WPF/wpf_notifyicon.aspx Anyway, I really wonder whether it is possible to get…
Sebastian Edelmeier
  • 4,095
  • 3
  • 39
  • 60
0
votes
2 answers

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 several other threads. I have the ability to run a…
Dale
  • 5,520
  • 4
  • 43
  • 79
0
votes
2 answers

pygtk system tray icon doesn't work

i am trying to display system tray icon in my program. when i start my program it shows window and when i colse window it gets hidden. Then if i click on system tray icon it shows me a blank window, but not the contents of window.Why is this…
user636424
0
votes
1 answer

SystemTray based application without window on Mac OS X

How do I do an application that runs only as a SystemTray TrayIcon on mac os x, (without an awt window and dock icon)? The code I'm using is this: public class App { public static void main( String[] args ) { final TrayIcon trayIcon; if…
mlkmt
  • 237
  • 2
  • 9
0
votes
0 answers

Start an app minimized in c#

I'm trying to have an app start minimized in c# but "windowstate" library isn't available as I have selected to build "Blank app" in c# + I cant find the notifyIcon tool in the toolbox. I tried to find that as I read some solutions including…
eik porro
  • 1
  • 1
0
votes
2 answers

C# tray context menu not hiding when message box

In my application I have context menu which is associated with tray icon of the application, when user click on About menu item, it display the message box. Message box is still visible, user right click again on tray icon, menu pop up, user click…
Sharique
  • 4,199
  • 6
  • 36
  • 54
0
votes
1 answer

How to pin an application to the System Tray during its msi installation?

I am looking for a way to pin my application's icon to the system tray during my application's msi installation. Dropbox seems to do this exact thing during its installation so I am confident that it is possible. After the msi is finished running,…
Alec
  • 666
  • 8
  • 23