tray

Trouble implementing code example using PInvoke Declarations

假装没事ソ 提交于 2019-12-01 11:09:16
问题 I am referencing the following thread here for my question: Get ToolTip Text from Icon in System Tray I basically want to do the same thing as the OP, but unlike some other users who responded to this thread, I am having trouble getting the code to work after adding in the missing PInvoke declarations that were not explicitly defined in the code samples. I assembled a class file that attempts to put everything together and I referenced the declarations from PInvoke.net (i'm not sure if this

java TrayIcon using image with transparent background

♀尐吖头ヾ 提交于 2019-11-28 18:20:05
I am using the following code to set a tray icon in Windows and Linux. It works wonderful in Windows and works okay in Linux. In Linux (Ubuntu) I have my panel set to be (somewhat) transparent and when I add a GIF (with a transparent background) the background of the icon shows up all grey and ugly (see image, green diamond "!")....Any ideas on how to make the GIF image I am adding "keep" its transparent background? alt text http://unarm.org/stackoverflow/panel_task.jpg and the image I am using, if you'd like to test: alt text http://unarm.org/stackoverflow/green_info.gif import java.awt.*;

How do I get a PopupMenu to show up when I left-click on a TrayIcon in Java?

对着背影说爱祢 提交于 2019-11-28 13:04:47
Currently, the PopupMenu will show up when I right-click on the TrayIcon in the SystemTray. However, I want it to do the same when I left-click on the TrayIcon. I thought I might accomplish this by using a mouseListener on the TrayIcon, but I don't know what method to invoke in the mouseClicked event to achieve the desired results. icon = new TrayIcon(img, tooltip, popup); icon.addMouseListener( new MouseAdapter() { public void mouseClicked(MouseEvent e) { popup.setEnabled(true); } }); Using the setEnabled() method does not make the popup menu appear when I left-click the TrayIcon. It actually

Printing with advanced options (tray selection, duplex, staple)

為{幸葍}努か 提交于 2019-11-28 10:34:18
We have a project of managing printing documents. At first I wonder why printing options couldn't be set up in single place. For example printer tray selection for first page and for other pages can be done using MS Word automation : var doc = _applicationObject.Documents.OpenNoRepairDialog(FileName: ref sourceFile, ReadOnly: ref readOnly, AddToRecentFiles: ref addToRecentFiles, Visible: ref visible); doc.PageSetup.FirstPageTray = (WdPaperTray) firstPageTrayCode; doc.PageSetup.OtherPagesTray = (WdPaperTray) otherPagesTrayCode; _applicationObject.ActivePrinter = printerPath; doc.Activate();

java TrayIcon using image with transparent background

♀尐吖头ヾ 提交于 2019-11-27 11:14:24
问题 I am using the following code to set a tray icon in Windows and Linux. It works wonderful in Windows and works okay in Linux. In Linux (Ubuntu) I have my panel set to be (somewhat) transparent and when I add a GIF (with a transparent background) the background of the icon shows up all grey and ugly (see image, green diamond "!")....Any ideas on how to make the GIF image I am adding "keep" its transparent background? alt text http://unarm.org/stackoverflow/panel_task.jpg and the image I am

Quick and easy: trayicon with python?

假如想象 提交于 2019-11-26 21:39:53
I'd just need a quick example on how to easily put an icon with python on my systray. This means: I run the program, no window shows up, just a tray icon (I've got a png file) shows up in the systray and when I right-click on it a menu appears with some options (and when I click on an option, a function is run). Is that possible? I don't need any window at all... Examples / code snippets are REALLY appreciated! :D FogleBird For Windows & Gnome Here ya go! wxPython is the bomb. Adapted from the source of my Feed Notifier application. import wx TRAY_TOOLTIP = 'System Tray Demo' TRAY_ICON = 'icon

How to capture trayicon.displayMessage() mouse click on the tooltip baloon

谁都会走 提交于 2019-11-26 14:29:27
问题 Hi, I am trying to show more detailed information after a user clicks on the message balloon tooltip. However, I can't find how to capture that event. Is this possible to do? 回答1: 1) Is possible to listening MouseClickEvents by add ActionListener to the TrayIcon, then Message body listening for MouseClicked 2) (not asked directly) but I can't to give you an answer listening if message was closed by close button, and Message gone away from screen same way, but without catch any event(s) 3)

Quick and easy: trayicon with python?

扶醉桌前 提交于 2019-11-26 08:00:20
问题 I\'d just need a quick example on how to easily put an icon with python on my systray. This means: I run the program, no window shows up, just a tray icon (I\'ve got a png file) shows up in the systray and when I right-click on it a menu appears with some options (and when I click on an option, a function is run). Is that possible? I don\'t need any window at all... Examples / code snippets are REALLY appreciated! :D 回答1: For Windows & Gnome Here ya go! wxPython is the bomb. Adapted from the