in reply to Re: System tray application
in thread System tray application

Thank you, these are very useful links.

Win32::SysTray I could put to work:
use strict; use Win32::SysTray; my $tray = new Win32::SysTray ( 'icon' => '/Icons/Application.ico', 'single' => 1, ) or exit 0; $tray->setMenu ( "> &Test" => sub { print "Hello from the Tray\n"; }, ">-" => 0, "> E&xit" => sub { return -1 }, ); $tray->runApplication;
Also I have found an example where with Win32::GUI the entire taskbar can be hidden:
use Win32::GUI; my $taskbar = Win32::GUI::FindWindow("Shell_TrayWnd", ""); Win32::GUI::Hide($taskbar); sleep(3); Win32::GUI::Show($taskbar);
Since building Gtk2 may be beyond my capabilities on the other hand Win32::GUI is already available and seems to have similar capabilities I ask:

Is it possible by using pure Win32::GUI to switch off the taskbar icon for an app?

update: build-gtk-glib-post.PL fails:
Can't open gtk_bundle/lib/pkgconfig/libglade-2.0.pc: No such file or d +irectory. Error GETing http://www.gtk.org/download-windows.html: Not Found at gt +kinst.pl line 113

Replies are listed 'Best First'.
Re^3: System tray application
by Anonymous Monk on Jan 29, 2012 at 19:20 UTC

    I would rather figure out how to compile/deploy Gtk2, than dicker with Win32::GUI

    Oh noes, the url changed, what do now? :p

    http://www.gtk.org/download/win32.php

      After correcting the url:
      C:\strawberry\perl\bin\perl.exe -pi.orig -e s!Requires!#Requires! gtk_ +bundle/lib/pkgconfig/libglade-2.0.pc at gtkinst.pl line 178. Can't open gtk_bundle/lib/pkgconfig/libglade-2.0.pc: No such file or d +irectory. Can't call method "url_abs" on an undefined value at gtkinst.pl line 1 +14.

        Oh noes, surely you must to give up now :D