Just a quick heads-up that as of the next Win32::GUI release that this
method of removing a NotifyIcon will be deprecated in favour of
$NI->Remove(). Using Delete() and having to specify the -id option was
always 'a bad thing' and prone to error. It will continue to work,
but will issue a warning in the next release.
Rob.
Brian Millham wrote:
Thanks, that's what I needed.
$NI->Delete(-id => 1);
does the trick. I knew that it would be simple...
Brian Millham
This message traveled at least 44,000 miles to reach you!
Creator of the DW6000 Monitor
http://www.millham.net/dw6000
[EMAIL PROTECTED]
-----Original Message-----
From: Brian Millham [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 8:52 PM
To: 'Plum, Jason'
Subject: RE: [perl-win32-gui-users] How to remove a notifyIcon
Thanks, that's what I needed.
$NI->Delete(-id => 1);
does the trick. I knew that it would be simple...
Brian Millham
This message traveled at least 44,000 miles to reach you!
Creator of the DW6000 Monitor
http://www.millham.net/dw6000
[EMAIL PROTECTED]
-----Original Message-----
From: Plum, Jason [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 8:43 PM
To: Brian Millham
Subject: RE: [perl-win32-gui-users] How to remove a notifyIcon
You will need to use the Delete :) I'd search for a specific example,
but I'm sure that one of the main contributors will turn around and give
it to you faster than my worn out arse can.
Cheers,
Jason P.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Brian Millham
Sent: Monday, January 30, 2006 7:53 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] How to remove a notifyIcon
Here another one of my dumb questions...
Once you create a notifyIcon, how do you remove it from the systray?
I'd
like to allow the user to either use the notifyicon, or to turn it off.
(And
it doesn't go away when the program exits)
I'm making good progress on my rolling line chart package. It's working
well for me, but the package isn't very user friendly yet. It's my
first
attempt are creating a real object in Perl, so I'm having problems
figuring
out the best way to do things, like:
I have a Chart class. Should the method to add a new line to the chart
be
in the Chart::Line class? Should the Scale be another class under
Chart, or
part of the Chart class?
I hope to have a simple working (but probably sloppy and poorly
documented)
package that I can share later this week.
Brian Millham
This message traveled at least 44,000 miles to reach you!
Creator of the DW6000 Monitor
http://www.millham.net/dw6000
[EMAIL PROTECTED]
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0605-1, 01/30/2006
Tested on: 1/30/2006 7:52:41 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0605-1, 01/30/2006
Tested on: 1/30/2006 8:52:16 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0605-1, 01/30/2006
Tested on: 1/30/2006 9:04:31 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/