trayicon

SWT System Tray - Linux GTK Gnome Tray icons with “SWT” String on tray

拟墨画扇 提交于 2019-12-06 03:30:25
I am configuring the system tray icons with the following code: /** * Configura os ícones da shell principal */ protected void setDiplayIcons(Shell shell){ Display display = shell.getDisplay(); InputStream inputImgTray = getClass().getClassLoader().getResourceAsStream(ImagensNaNOffline.IMG_LOGO_SEBRAE.getPath()); Image image = new Image(display, inputImgTray); shell.setImage(image); Tray tray = display.getSystemTray(); final ToolTip tip = new ToolTip(shell, SWT.BALLOON | SWT.ICON_INFORMATION); tip.setMessage("Balloon Message Goes Here!"); if(tray != null) { TrayItem trayItem = new TrayItem

PNG TrayIcon transparency on Windows

会有一股神秘感。 提交于 2019-12-06 00:32:20
问题 I'm trying to use a transparent PNG as the icon for my Java application. The image on the JFrame and task bar work great. However, when I use the image with a TrayIcon, I get a black matte background around the edge of the PNG. Has anybody else come across this issue? I would really like to use a PNG instead of GIF or JPEG. 回答1: With Java6, a PNG picture should be used for TrayIcon , but as mentioned in this SO question, check: the background color chosen to represent the transparent pixels

Proper way of activating my MainForm from a NotifyIcon if it wasn't focused already

旧街凉风 提交于 2019-12-04 06:01:02
问题 I just want to replace the task bar button of my winforms application by a tray notification icon. That means, if the user left-clicks the icon, the form should be activated if it wasn't focused, otherwise minimized or hidden. I read lots and lots of articles about properly using a NotifyIcon , and it seems I have to accept a hackish solution. So, what's the most proper way? I got it mostly to run, but now I'm stuck at detecting if my form was active already - because when clicking the icon,

PNG TrayIcon transparency on Windows

邮差的信 提交于 2019-12-04 05:40:41
I'm trying to use a transparent PNG as the icon for my Java application. The image on the JFrame and task bar work great. However, when I use the image with a TrayIcon, I get a black matte background around the edge of the PNG. Has anybody else come across this issue? I would really like to use a PNG instead of GIF or JPEG. VonC With Java6 , a PNG picture should be used for TrayIcon , but as mentioned in this SO question , check: the background color chosen to represent the transparent pixels the transparency options the resolution of the icon alternate format like SVG (provided you are using

Nicer notifications in tray

岁酱吖の 提交于 2019-12-04 05:11:46
Do you know any example with nicer notification in system tray? I don`t like standard baloon so maybe there are others free, third-party components I can use? Thanks here is another example http://www.codeproject.com/KB/miscctrl/taskbarnotifier.aspx As a designer, I think I know what you are looking for. You want an outlook like notification (as a mini dialog box), you can see an example here . Enjoy. 来源: https://stackoverflow.com/questions/1393928/nicer-notifications-in-tray

Set tray icon to always show

眉间皱痕 提交于 2019-12-03 05:52:53
问题 How I can I set a NotifyIcon to be always visible in the right tray: http://screensnapr.com/v/qKWHe2.png because it shifts it over into the inactive icon window: http://screensnapr.com/v/jjtuK0.png The issue is that the tray icon has a context menu that lets someone take a screen shot. So every time they take a screenshot, that inactive icon window is in the picture, blocking whatever is behind it like a photo bomber. I know it is possible to do it through code because other applications such

How can I overlay system-tray icon ? WPF

 ̄綄美尐妖づ 提交于 2019-12-02 20:17:45
问题 I've got a window like <Window x:Class="Hardcodet.NetDrives.UI.SystemTray.Sample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:tb="http://www.hardcodet.net/taskbar"> <Window.TaskbarItemInfo> <TaskbarItemInfo> <TaskbarItemInfo.Overlay> <DrawingImage> ... </DrawingImage> </TaskbarItemInfo.Overlay> </TaskbarItemInfo> </Window.TaskbarItemInfo> <tb:TaskbarIcon x:Name="myNotifyIcon" Icon="pic.png"/> </Window> How is

Set tray icon to always show

有些话、适合烂在心里 提交于 2019-12-02 19:15:25
How I can I set a NotifyIcon to be always visible in the right tray: http://screensnapr.com/v/qKWHe2.png because it shifts it over into the inactive icon window: http://screensnapr.com/v/jjtuK0.png The issue is that the tray icon has a context menu that lets someone take a screen shot. So every time they take a screenshot, that inactive icon window is in the picture, blocking whatever is behind it like a photo bomber. I know it is possible to do it through code because other applications such as comodo has done it without having me drag and drop the icon onto there. For pining a shortcut to

java: TrayIcon right click disabled on Mac OsX

℡╲_俬逩灬. 提交于 2019-12-02 14:53:03
问题 I'm trying to develop a Mac OsX app provided by a system tray icon, so after the first attempt with the simplest code to achieve it I noticed that every apps tray icon's (both system and user apps) on mac osX (10.8) allows to activate the relative popup menu with both left and right click on it but with my project only the left (MouseEvent.BOTTON1) button causes the popup menu to pulldown. Here's my code: public class SystemTrayDemo { private SystemTray tray; private TrayIcon tray_icon;

Proper way of activating my MainForm from a NotifyIcon if it wasn't focused already

断了今生、忘了曾经 提交于 2019-12-02 08:54:59
I just want to replace the task bar button of my winforms application by a tray notification icon. That means, if the user left-clicks the icon, the form should be activated if it wasn't focused, otherwise minimized or hidden. I read lots and lots of articles about properly using a NotifyIcon , and it seems I have to accept a hackish solution. So, what's the most proper way? I got it mostly to run, but now I'm stuck at detecting if my form was active already - because when clicking the icon, the form looses focus, so I cannot check the Focused property. The following code does not yet solve