From: Luigino M. <lma...@ou...> - 2002-10-21 05:29:18
|
Hi, I'm using this code with success: $window->AddNotifyIcon( -name =3D> "notifyIcon", -id =3D> 1, -icon =3D> $Icon, -tip =3D> 'My application...' ); to create the icon and: Win32::GUI::NotifyIcon::Delete( $window, -id =3D> 1, ); placed after Win32::GUI::Dialog(), to remove the notifyicon ... I think it's an undocumented feature I found somewhere in this list. Bye. Luigino Masarati OutSys snc ----- Original Message ----- From: "Johan Lindstrom" <jo...@ba...> To: <per...@li...> Sent: Monday, October 21, 2002 12:31 AM Subject: [perl-win32-gui-users] NotifyIcon doesn't go away on program exi= t > I forget. Did we solve the problem where the tray icon stayed there a > little while after program exit? > > My best solution now is to replace it with an invisible icon, like this= : > > Win32::GUI::NotifyIcon::Modify( > $win, > -id =3D> 1, > -icon =3D> undef, > ); > > This leaves an empty space where the icon was (still is, but non-visibl= e), > which is removed when the user moves the mouse cursor over the tray (th= is > goes for w2k). > > > /J > -------- ------ ---- --- -- -- -- - - - - - > Johan Lindstr=F6m Sourcerer @ Boss Casinos jo...@ba... > > Latest bookmark: "XEmacs XEmacs and Supporting Libraries and Prog..." > http://xemacs.org/Download/win32/ > dmoz: /Computers/Open_Source/Software/Editors/ 98 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |