Hi,
    I'm using this code with success:

 $window->AddNotifyIcon(
  -name => "notifyIcon",
  -id   => 1,
  -icon => $Icon,
  -tip  => 'My application...'
 );

to create the icon and:

 Win32::GUI::NotifyIcon::Delete(
  $window,
  -id => 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" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Monday, October 21, 2002 12:31 AM
Subject: [perl-win32-gui-users] NotifyIcon doesn't go away on program exit


> 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 => 1,
> -icon => undef,
> );
>
> This leaves an empty space where the icon was (still is, but non-visible),
> which is removed when the user moves the mouse cursor over the tray (this
> goes for w2k).
>
>
> /J
> -------- ------ ---- --- -- --  --  -    -     -      -         -
> Johan Lindström    Sourcerer @ Boss Casinos     [EMAIL PROTECTED]
>
> 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
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>


Reply via email to