tray

Cannot get QSystemTrayIcon to work correctly with activation reason

最后都变了- 提交于 2019-12-12 14:35:08
问题 I am using Ubuntu 12.04 and, while I can create a tray icon with a usable menu, I cannot control its actions: trayIcon = new QSystemTrayIcon(this); trayIcon->setIcon(QIcon(":/icons/Pictures/icon.png")); trayIcon->setToolTip(QString("Hello there...")); connect(trayIcon,SIGNAL(activated(QSystemTrayIcon::ActivationReason)),this,SLOT(clickSysTrayIcon(QSystemTrayIcon::ActivationReason))); connect(this,SIGNAL(minimized()),this,SLOT(hide()),Qt::QueuedConnection); QMenu *changer_menu = new QMenu;

Making a pull out tray - (iOS)

北城以北 提交于 2019-12-11 18:42:31
问题 I'm making an iPad app, and basically, I want to make a tray that pulls out from the bottom of my app, and I'd like to have a little tab at the bottom of the screen that if you pull, it brings up an image, and the image's height would match the height you pulled the button to. It's a bit like how the notification center works, except the tab is always visible. So my question is how would I have the image follow the tab as it moves vertically across the screen? I would assume using a UIButton

GtkStatusIcon label in Gnome3

杀马特。学长 韩版系。学妹 提交于 2019-12-11 18:17:33
问题 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? 回答1: You can use gtk_status_icon_set_tooltip_text() or gtk_status_icon_set_tooltip_markup(). Alternatively, you can handle the query-tooltip signal and set the text dynamically when the tooltip is shown. 回答2: it was gtk_status_icon_set_title sorry for stupid question. 来源: https://stackoverflow.com/questions/7966414/gtkstatusicon-label-in-gnome3

tray component for Delphi

泪湿孤枕 提交于 2019-12-11 03:47:34
问题 Please advice some modern tray component for Delphi. The more functionality it has is better. It should support Delphi 2010. I just need to place an icon to tray and handle clicking on it and show popup when mouse cursor is over it. 回答1: What about TTrayIcon. It's been in Delphi since Delphi2006. 回答2: If you have a very old delphi version (older than 2006) then try the free TJvTrayIcon in the JEDI VCL. 回答3: I'm pretty sure that the Raize suite has a tray icon component. The suite isn't free,

Windowless tray icon application

我怕爱的太早我们不能终老 提交于 2019-12-07 17:20:24
问题 OK I am a total newbie at WPF but I have to develop what's in the title with wpf but not relying on MVVM. I have followed this: WPF Application that only has a tray icon I found the first answer the one with the hardcodet lib but find it too difficult and MVVM biased. So followed the second one and everything seemed fine except that in the end it doesn't work. So in my App.xaml.cs I have put: public partial class App : Application { private System.Windows.Forms.NotifyIcon notifyIcon = null;

C# close to tray (like msn messenger)

霸气de小男生 提交于 2019-12-07 06:04:35
问题 I have a c# .net app. So I created a notifyIcon that sits in the tray. What I want to do is when the user hits the "x" button on the form, I want it to close to the tray. They should only be able to exit program by using the context menu in the tray icon. So what I did was, on the form close event, I check whether the form is visible. If its visible, i set it to invisible and set showInTaskbar to false (simulating minimize to tray) If the form is invisible already, then they are probably

C# close to tray (like msn messenger)

≯℡__Kan透↙ 提交于 2019-12-05 10:01:41
I have a c# .net app. So I created a notifyIcon that sits in the tray. What I want to do is when the user hits the "x" button on the form, I want it to close to the tray. They should only be able to exit program by using the context menu in the tray icon. So what I did was, on the form close event, I check whether the form is visible. If its visible, i set it to invisible and set showInTaskbar to false (simulating minimize to tray) If the form is invisible already, then they are probably closing it from the tray, so I will exit the program in that case. However, the problem I have is that if

Embed youtube playlist with side list tray

拥有回忆 提交于 2019-12-04 18:29:33
问题 I've been playing with the youtube embed playlist functionality with javascript. So far when I embed a playlist it looks like this: http://postimage.org/image/vk6fv56yx/ The blue circle shows the number of items in the playlist and when clicked the thumbnails show. when the video starts playing is necesary to click the playlist button for the list to show, like this: http://postimage.org/image/ezzxpy7pn/ But I want the player to show like it shows on the youtube page, like this: http:/

WPF list available printers and trays

旧街凉风 提交于 2019-12-02 14:01:20
问题 I'm writing WPF application which needs to display list of available Printers and corresponding trays. I can able to get list of available printers by loop through the following line PrinterSettings.InstalledPrinters and now stuck up with getting corresponding printer trays. could anybody give sample code? 回答1: You are looking for PaperSources property - Gets the paper source trays that are available on the printer . (MSDN: http://msdn.microsoft.com/en-us/library/system.drawing.printing

Display numbers on a tray icon with SWT

两盒软妹~` 提交于 2019-12-02 04:06:47
问题 I would like to show some numbers on my tray icon indicating a number of events that happened to the user like what is done in this facebook notifications icons: Do you think that it is possible ? Thank you 回答1: You can do this using the TaskBar and TaskItem classes although it may not work on all platforms. TaskBar taskBar = Display.getDefault().getSystemTaskBar(); // TODO may return null if not supported on the platform // Get application item TaskItem taskItem = taskBar.getItem(null); if